zotero-actions-tags icon indicating copy to clipboard operation
zotero-actions-tags copied to clipboard

Remove one tag on assigning another tag

Open kerim opened this issue 1 year ago • 4 comments

I have several tags to help me sort and prioritize my reading, such as "important" and "to read" - I'd like these automatically removed when I add the tag "done" (thanks to you I've replaced these with emoji: ⭐️, 📌, ✅). And with the keyboard it would be great if I could toggle between all three tags, so that first one appears, then the other, then the other.

kerim avatar Jul 18 '22 01:07 kerim

Please update and use the prefix ~~ before the tags in the rules to mark them as to be removed.

Like this: image

The ⭐️ tag will be added/removed when the shortcut/auto event is triggered and the 1 & /unread will be removed.

windingwind avatar Jul 18 '22 05:07 windingwind

Thanks.

kerim avatar Jul 18 '22 06:07 kerim

Now that the keyboard commands are working the Mac, I am able to test this. I have the following rule: ✅,~~⭐️ but when I invoke its with the keyboard it only adds ✅, it does not remove ⭐️, so I end up with both.

kerim avatar Jul 25 '22 22:07 kerim

That is strange, as it works fine on Windows. I don't think this add/remove tag function is platform-dependent, as this plugin has been used for several years. I'll install a Mac VM to test the issues related to macOS. Thanks for reporting the bugs!

windingwind avatar Jul 26 '22 02:07 windingwind

I have to admit running macOS in a VM is very slow, making it impossible to debug. If you are using macOS and encountered this bug, please do the following steps to help me debug:

  1. Enable zotero-tag and disable other plugins;
  2. Open Help-Debug Output-View Output
  3. Show me the tag settings page;
  4. Try to trigger one rule which contains ~~;
  5. Upload the debug data here.

Thanks!

windingwind avatar Dec 21 '22 15:12 windingwind