Quick note and deck buttons
As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.
This add-on previously supported Anki 2.0. You can download the last version supporting 2.0 here. As Anki 2.0 has been discontinued, no support is available for this version.
All Anki 2.1.x Add-Ons
I am using the version 1.1 on Windows 10.
I want to add a quick access button to the edit screen. But after I edited the add-on, it couldn't work.
I read the error message but still can't figure out how to fix the problme because coding is really beyond me.
Could someone hlep me, please? Thanks!!!
The error message is as follows:
Traceback (most recent call last):
File "aqt\main.py", line 706, in onAddCard
File "aqt\__init__.py", line 61, in open
File "aqt\addcards.py", line 25, in __init__
File "anki\hooks.py", line 59, in repl
File "aqt\addcards.py", line 46, in setupChoosers
File "aqt\deckchooser.py", line 19, in __init__
File "anki\hooks.py", line 56, in repl
File "C:\Users\linda\AppData\Roaming\Anki2\addons\Quick_note_and_deck_buttons.py", line 156, in <lambda>
lambda dc: setup_buttons(dc, deck_buttons, "deck", change_deck_to),
File "C:\Users\linda\AppData\Roaming\Anki2\addons\Quick_note_and_deck_buttons.py", line 108, in setup_buttons
b = QPushButton(button_item["label"])
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Roaming\Anki2\addons\Quick_note_and_deck_buttons.py", line 113, in <lambda>
l = lambda s=chooser, nn=button_item["name"]: do_function(s, nn)
File "C:\Users\Administrator\AppData\Roaming\Anki2\addons\Quick_note_and_deck_buttons.py", line 132, in change_model_to
chooser.deck.conf['curModel'] = m['id']
TypeError: 'NoneType' object has no attribute '__getitem__'
makes it easy to select note type (and deck) if you have a lot of note types (e.g. from imported decks)
Definitely in my top-5 most-used Anki add-ons.
The source file is very well-documented, but if you're completely unfamiliar with editing Anki add-ons you might want to check out my video tutorial where I cover how to configure this add-on: https://www.youtube.com/watch?v=aG2Vf-wZLu8
And it has shortcuts too! Isn't that sweet?
Renerio of www.noone-special.com
Thank you so much for this, this is exactly what I was looking for for weeks !
Quite frankly, the original Type and Deck pickers suck. You need to:
1) Motion mouse towards picker button,
2) click button,
3) motion mouse towards picker dialogue,
4) pick your choice
5) motion mouse click OK,
In terms of ergonomics, that's a very expensive implementation. Using layman's terms, it's just outright clumsy.
This neat little add-on reduces the above 5 steps to:
1) Motion mouse towards button,
2) Click button. Done!
It's 5 stars from me :)
Coming from a non-programmer I looked at the Python stuff and I backed away. Then I installed it and had a closer look and its ridiculously easy to set up because the dev put a bunch of examples in the code.
Oh and it works great!
You can define you own buttons, complete with labels and shortcuts.
Switching the note type retains the input for the fields.
I was never really made use of the advantages of many Templates, since it was too annoying to switch (or forget to switch) the template. Now it is way easier!
THX so much :-)
Anki is fantastic but sometimes violates the "minimal clicks" principle of GUI navigation. It takes far too many clicks to do something frequently necessary like switching card types. Since Anki is all about efficiently memorizing, it makes sense to have an efficient method of entering notes as well.
I have a few frequently used custom templates. I added them as 4 buttons at the top of the add window without difficulty. Perfect add-on!
Works great here. Thanks v much for sharing this! – Also, note that buttons may be accessed by shortcut. People on Mac should note that "Ctrl" corresponds not to the 'control' but to the 'command' key. One may also use further keys, as in "Shift+Ctrl+0".