7 0
Sign in to rate

Editor Tag Hotkeys

<10kB. Updated 2017-08-06. Only supports Anki 2.0.
The author has shared 65 other item(s).


Allows you to define hotkeys that toggle specific tags in the note editor. VIDEO TUTORIAL The customization and use of this add-on is demonstrated in the following video (alongside other similar add-ons): COMPATIBILITY This add-on only works with Anki's stable release branch (2.0.x ≥ 2.0.30). The 2.1 beta branch is not supported at this point in time. USAGE -- Adding a Tag Hotkey -- Edit editor-tag.hotkeys.py and modify the tags dictionary with your custom hotkey assignments, e.g.: tags = { "Alt+Shift+1": u"Anatomy", "Alt+Shift+2": u"Physiology" } Supported keyboard modifiers are: Alt, Shift, Ctrl, Meta (on Mac: Meta ≙ Control, Ctrl ≙ Cmd). The exact syntax is explained in the comments next to the dictionary. -- Clearing Tags Field -- This add-on also includes a hotkey that clears the tags field: Alt + Shift + R -- Defining a Unique Tag -- Sometimes you might want to quickly toggle between several different tags. For this purpose I've implemented a configuration option called unique_tags. Any items added to this list will cause their respective hotkeys to delete all other instances of unique tags aside from the one currently being triggered. For instance, if you set up hotkeys for "tag1" and "tag2" and add these tags to unique_tags, hitting the hotkey for "tag1" will delete "tag2" from the tags list and vice-versa. To add a unique tag, simply update the following excerpt in the script: unique_tags = ["tag1", "tag2"] Please make sure to preserve the formatting and quoting while doing so! CHANGELOG 2017-08-05 – Update license 2017-04-11 – Reworked add-on from the ground-up: much more intuitive key assignments, preparations for Anki 2.1 2016-02-18 – Add support for unique tags; Misc bug fixes and improvements 2015-12-25 – Add support for unicode in toggled tags (thanks to aleksejrs) 2015-11-06 – Toggling tags also works in the card browser now 2015-10-27 – Added a hotkey to clear the tags field 2015-10-27 – Initial release SUPPORT Please do not report issues or bugs in the review section below, as I will not be able to reply to them nor help you. Instead, please report all issues you encounter either on GitHub, or by posting a new thread on the Anki add-on support forums while mentioning the name of the affected add-on in your thread title. CREDITS AND LICENSE Copyright © 2015-2017 Glutanimate Licensed under the GNU AGPL v3. The code for this add-on is available on GitHub. MORE RESOURCES A lot of my add-ons were commissioned by other Anki users. If you enjoy my work and would like to hire my services to work on an add-on or new feature, please feel free to reach out to me at: ankiglutanimate [αt] gmail . com Want to stay up-to-date with my latest add-on releases and updates? Feel free to follow me on Twitter: @Glutanimate New to Anki? Make sure to check out my YouTube channel where I post weekly tutorials on Anki add-ons and related topics: / Glutanimate


The add-on author has not uploaded a version of this add-on compatible with Anki 2.1. Old add-ons for Anki 2.0 can be downloaded from the archive.

All Anki 2.1.x Add-Ons


on 1656040293
Any updates on a version for Anki 2.1? This add-on would be such a time-saver!!
on 1575453701
are you going to update "editor tag hotkey on 2.0" for 2.1 users?
I really need this add-on but i cannot find "editor tag hotkey" in 2.1.
Comment from author
Planning on it!
on 1565710475
Improve workflow
on 1496793600
on 1493510400
on 1492041600
on 1452556800