[Share] Shortcut for adding tags to an annotation #458
Phidet97
started this conversation in
Action Scripts
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hi all,
I just wanted to share my little code for adding tags to a selected annotation, i.e. a highlighted portion of text in the Zotero PDF Viewer.
I use annotation tags to categorize text snippets while doing research before extracting citations, notes and tags to Obsidian. That way, when writing my manuscript in Obsidian, I can filter exported citations there via annotation tags.
Weirdly, the option of using a shortcut to quickly open up the annotation tag window was not implemented, at least not that I could find.
Anyway, here's how it works:
Paste the code into a new Action Script and assign a hotkey. Highlight a text portion inside the Zotero PDF Viewer to create an annotation. Select that text or annotation box and hit the hotkey. A window pops up, asking to insert tags. You can enter multiple tags separated by a blank space, each word being added as a separate tag.
Hope some of you will find this useful!
Event
None
Operation
Script
Data
Anything else
No response
Beta Was this translation helpful? Give feedback.
All reactions