windingwind/zotero-actions-tags

根据已有标签决定是否添加新的标签[add tags according to current tags]

LamFTS opened this issue · 1 comments

Is there an existing issue for this?

  • I have searched the existing issues

Environment

  • OS: Archlinux
  • Zotero Version: Zotero Beta 55
  • Plugin Version: 1.0.0-beta.33

Describe the feature request

我想根据当前条目已有的标签决定现有标签如何添加,比如,我想设置三个标签状态,分别是/unread/open/readed,我希望打开条目时自动添加/opened标签并自动移除/unread,但是如果此条目已经被赋予了/readed标签,则再次打开该条目不执行添加/open标签。以前可以通过设置:'/open[!/readed]',~~/unread实现,但是新版本貌似是需要自定义脚本,希望能出一个教程或脚本。非常感谢。
I want to add tags based on the existing tags for the current item. For example, I want to set three tag states, namely /unread, /open, and /readed. I want to automatically add the /open tag and remove the /unread tag when opening item, but if the item has already been assigned the /readed tag, opening it again will not perform addition of /open tag. Previously, it was possible to achieve this by setting: '/open[!/read]',~~/unread', but the new version seems to require custom scripts. We hope to have a tutorial or script available. Thanks.

Describe the solution you'd like

如上述[described above]。

Anything else?

类似的,我想设置一个动作,当自动添加/open标签时,移除/unread标签该如何操作呢?
Similarly, I would like to set an action to remove the /unread tag when /open is automatically added.

可参考#202