3 0
Sign in to rate

Browser Search Hotkeys

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


Allows you to set up hotkeys for searches in the browser USAGE Hotkeys follow this scheme: Ctrl+S –> (Modifier) + Key. I.e.: hit Ctrl+S to start the key sequence, let go of Ctrl+S, then hit the key assigned to your search, plus an optional modifier. You can use keyboard modifiers to control whether to add a term to the search, negate it, remove it, or do something else. This follows the same logic as the default behaviour in Anki when clicking on a search term in the sidebar. New hotkeys can be defined in the source file by editing the search_shortcuts dictionary. Make sure to follow the existing syntax. For instance, line 2 in the default search_shortcuts dict assigns the search 'added 1' (cards added today) to 'T'. This defines the following key sequences in the browser: Ctrl+S -> T replace search field with 'added:1' Ctrl+S -> Ctrl+T add 'added:1' to existing search Ctrl+S -> Alt+T: replace search field with '-added:1' Ctrl+S -> Ctrl+Alt+T: add '-added:1' to existing search Ctrl+S -> Shift+T: add 'or added:1' to existing search The following keys are assigned by default: 'A': {'search': ''}, # All together now 'T': {'search': 'added:1'}, # Today 'V': {'search': 'rated:1'}, # Viewed 'G': {'search': 'rated:1:1'}, # aGain today 'F': {'search': 'card:1'}, # First 'C': {'search': 'deck:current'},# Current 'N': {'search': 'is:new'}, # New 'L': {'search': 'is:learn'}, # Learn 'R': {'search': 'is:review'}, # Review 'D': {'search': 'is:due'}, # Due 'S': {'search': 'is:suspended'},# Suspended 'B': {'search': 'is:buried'}, # Buried 'M': {'search': 'tag:marked'}, # Marked 'E': {'search': 'tag:leech'}, # lEech COMPATIBILITY This add-on has only been tested with Anki's stable release branch (2.0.x ≥ 2.0.30). The 2.1 beta branch is probably not supported at this point in time. CHANGES 2017-08-06 – Refactored code 2016-04-27 – Implemented hotkeys for more searches. Thanks to ankitest! 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 (c) 2016-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 1582771886
Any possible way to get this ported to the newest version?
on 1571793617
Thank you
on 1503100800