wshanks / Zutilo

Zotero plugin providing some additional editing features
Other
1.53k stars 72 forks source link

Feature request: Relate selected items and share tags #208

Open michelspeiser opened 3 years ago

michelspeiser commented 3 years ago

In Zotero, I often find myself doing 3 things in sequence: relating two items, then copying tags from one, then pasting tags to the other.

The idea here would be to have an additional option "Relate selected items and share tags" which does all of these. Let's say I have

After selecting both of them and applying "Relate selected items and share tags", this would become:

qqobb commented 3 years ago

You can currently do this using three shortcuts:

Select two items, then use (C), (V), and (R), e.g., by typing Alt+1+2+3 or another shortcut of your choice.

Instead of using three shortcuts, you could also select items in Zotero and then run this code in the "Run JavaScript" tool:

ZutiloChrome.zoteroOverlay.copyTags();
ZutiloChrome.zoteroOverlay.pasteTags();
ZutiloChrome.zoteroOverlay.relateItems();

The Zotero developers are planning to add a function that allows executing saved scripts through keyboard shortcuts (https://github.com/wshanks/Zutilo/issues/171). That would address your feature request. BTW, you can also set a Zutilo shortcut for opening the "Run JavaScript" window.

michelspeiser commented 3 years ago

@qqobb thanks, I was not aware that Zotero supports custom shortcuts, how does that work (I'm on MacOS)? In Zotero -> Preferences -> Advanced -> Shortcuts , I only see a few commands which can be customized, but nothing like "Copy tags".

qqobb commented 3 years ago

Zutilo's preferences should be accessible through "Tools" -> "Zutilo Preferences..." (Windows/Linux). I'm not sure if this is also the case for macOS. It would help if you could let us know.

We should probably be more clear in the "Getting started" section: https://github.com/wshanks/Zutilo#getting-started

michelspeiser commented 3 years ago

@qqobb It's the same on MacOS - thanks!