-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tag for old tag name is not removed when changing cutom tag name #145
Comments
Another issue is that there's no message displayed if the input is not valid (after running the check): zotero-markdb-connect/src/modules/mdbcUX.ts Line 735 in 1546b17
and the value is not reset to the previously valid tag name (it will be reset to the default value after running manual sync). |
That is expected behavior. Zotero makes it really easy to bulk-remove tags (by right clicking on a tag and choosing "Delete Tag..."), so I thought it'd be safer to just let the user handle cleanup rather than automating a behavior like deleting tags. Have you run into issues with that design choice or was it just unexpected?
These are both good points. I've been meaning to deal with config string validation before the preference pane is closed (rather than when the sync is run). Those updates will change the silent reversion to default into a vocal reversion to the last-valid value. |
Yeah it was just unexpected and I didn't know that it was possible to remove a tag from all items in Zotero. Maybe display a popup message to notify the user after changing the name tag, possibly with a button to delete the previous tag?
Yeah I think that the commonly expected behavior is for the validation check to happen right after losing focus from the input field ( Applying the change on close event of the preference pane doesn't feel right since the preference pane uses a dynamic logic (there's no 'save' button on its buttom). On the other hand, an example of usage case for why it shouldn't be at close event: usually what I do is change some preferences and test the effect in Zotero's main pane while leaving the preference pane open because I'm not sure yet if that's the final pref I want (either because the pref description isn't clear so I play around with it to understand what it does, or because I'm not sure without seeing how it turns out). So it would be confusing if nothing changed in this case, especially that other prefs do work as expected here. Btw thanks for the reply and for the plugin! I'd be happy to help with code changes as much as I can (I don't usually code with JavaScript/web based languages but I've been playing around with it for a while). Cheers |
I also have a few other suggestions (maybe I should put them in another issue?), for example:
I'd be happy to discuss it with you. |
When using a custom tag name, after specifying a new tag name, the new tag is added to the items that had the old tag, but the old tag is not removed.
Is this the expected behavior? Is it possible to add an option for removing the old tag in this case?
The text was updated successfully, but these errors were encountered: