

Handy Answer Keys Shortcuts
<10kB. Updated 2013-07-06. Only supports Anki 2.0.
The author has shared 1 other
item(s).
Description
Download
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.Reviews

Thanks much for taking the time to do this!

Very helpful!

Not Working

didnt work

So good it should be default to anki!

It really helps!

A great convenient feature, thanks!

V helpful

Great add-on !
You can easily change the assignation of keys by modifying the code. Yet if you desire to use special characters, just as said in a previous comment, you have to add the following three lines at the beginning of the script :
import sys
reload(sys)
sys.setdefaultencoding('utf8')
And then you will be able to use é, ö and others.
You can easily change the assignation of keys by modifying the code. Yet if you desire to use special characters, just as said in a previous comment, you have to add the following three lines at the beginning of the script :
import sys
reload(sys)
sys.setdefaultencoding('utf8')
And then you will be able to use é, ö and others.

My favorite add-on! would be greatly appreciated if it was available for the newest anki version. i really miss the undo button

Love it. Ergonomic and makes reviewing cards you know instantly a breeze.

Simple, intuitive, great for right-handed users!

Useful since I'm used to using j-k-l keys as shortcuts when watching youtube videos.

Very useful add-on! Thank you!

!

Good!

Awesome plugin. If anyone wants to use the right hand mode only I made some alterations so you can use 7, 8, 9, 4 for again, hard, good, easy, + to slip the card, - for ctrl+z, and I added I new functionality where you can comeback to the front when pressing 5 and then comeback to the back when pressing 2, so you can repeat the review instantanously inumerous times before answering with again, hard, good, etc.
def keyHandler(self, evt, _old):
key = unicode(evt.text())
if key == "-":
try:# throws an error on undo -> do -> undo pattern, otherwise works fine
mw.onUndo()
except:
pass
elif key == "+":
self._showAnswerHack()
elif key == "5":
self._showQuestion()
elif key == "2":
self._showAnswer()
elif key in ["7", "8", "9", "4",]:
cnt = mw.col.sched.answerButtons(mw.reviewer.card) # Get button count
isq = self.state == "question"
if isq:
self._showAnswerHack()
if key == "7":
self._answerCard(1)
elif key == "8":
if isq:
self._answerCard(self._defaultEase())
else:
self._answerCard(2)
elif key == "9":
if isq:
self._answerCard(self._defaultEase())
else:
self._answerCard(3 if cnt >= 3 else cnt)
elif key == "4":
self._answerCard(cnt)
else:
return _old(self, evt)
else:
return _old(self, evt)
Reviewer._keyHandler = wrap(Reviewer._keyHandler, keyHandler, "around")
def keyHandler(self, evt, _old):
key = unicode(evt.text())
if key == "-":
try:# throws an error on undo -> do -> undo pattern, otherwise works fine
mw.onUndo()
except:
pass
elif key == "+":
self._showAnswerHack()
elif key == "5":
self._showQuestion()
elif key == "2":
self._showAnswer()
elif key in ["7", "8", "9", "4",]:
cnt = mw.col.sched.answerButtons(mw.reviewer.card) # Get button count
isq = self.state == "question"
if isq:
self._showAnswerHack()
if key == "7":
self._answerCard(1)
elif key == "8":
if isq:
self._answerCard(self._defaultEase())
else:
self._answerCard(2)
elif key == "9":
if isq:
self._answerCard(self._defaultEase())
else:
self._answerCard(3 if cnt >= 3 else cnt)
elif key == "4":
self._answerCard(cnt)
else:
return _old(self, evt)
else:
return _old(self, evt)
Reviewer._keyHandler = wrap(Reviewer._keyHandler, keyHandler, "around")

For german users, scroll down and check other members tutorial. Works great.

Ok. Too bad pinky (') wasn't keyed for 'Repeat Audio' (Current default is R) - then the add-on would have been 'perfect' ;)
Daniel Léo Simpson
Composer
San Francisco
Daniel Léo Simpson
Composer
San Francisco

Thank you! This is what I was looking for. So convenient!

Neat

Thank you. Seems quite handy




great customisation, but appears incompatible with anki 2.1
'invalid code, or add-on not available for your version of Anki'
'invalid code, or add-on not available for your version of Anki'


you have made my life so easy..thank you so much. without this , i can't imagine

Peu utile
Ne fonctionne pas avec le clavier japonais Google. Does not work if Google Japanese Input is used. :-(
How could I assign other keys with will not result in a character input, like F1 to F4?
Ne fonctionne pas avec le clavier japonais Google. Does not work if Google Japanese Input is used. :-(
How could I assign other keys with will not result in a character input, like F1 to F4?



Works great!
For left-handed users, or for people who want to use flashcards with the left hand while writing with their right hand, it's possible to replace the default shortcut keys with custom keys. For example:
Tools > Add-ons > Handy_Answer_Keys_Shortcuts > Edit...
Copy the text into a text editor such as Notepad++, replace 'j' with 'r', replace "j" with "r", etc. to make the following changes:
j ==> r
k ==> e
l ==> w
; ==> q
Where 'q' is easiest and 'r' is most difficult. The commented text in the script contradicts itself, but "l" and ";" (or after the change, "w" and "q") set the question to "easy" when there are only three options.
For left-handed users, or for people who want to use flashcards with the left hand while writing with their right hand, it's possible to replace the default shortcut keys with custom keys. For example:
Tools > Add-ons > Handy_Answer_Keys_Shortcuts > Edit...
Copy the text into a text editor such as Notepad++, replace 'j' with 'r', replace "j" with "r", etc. to make the following changes:
j ==> r
k ==> e
l ==> w
; ==> q
Where 'q' is easiest and 'r' is most difficult. The commented text in the script contradicts itself, but "l" and ";" (or after the change, "w" and "q") set the question to "easy" when there are only three options.

"Why The Fuck Doesn't This Already Come With Anki? - The Add-on"
This deck makes my life so much easier, instead of pressing enter then 4 . . . I just press the ";" key. Being a hardcore Anki user, I can't imagine myself without this add-on.
This deck makes my life so much easier, instead of pressing enter then 4 . . . I just press the ";" key. Being a hardcore Anki user, I can't imagine myself without this add-on.


Works as advertised
My only recommendation would be to bind the 'z' to the 'i' key for undo, since having ctrl+z binded to 'z' defeats the purpose of having to use just the right hand.
(Altho it's easy enuff for the user ot make this change, just saying : )
My only recommendation would be to bind the 'z' to the 'i' key for undo, since having ctrl+z binded to 'z' defeats the purpose of having to use just the right hand.
(Altho it's easy enuff for the user ot make this change, just saying : )




How to remove bypass
could anyone let me know how configure this to NOT bypass "show answer" when I hit the key(s)?
could anyone let me know how configure this to NOT bypass "show answer" when I hit the key(s)?




Easily customizable source code, too. Thanks!


Simple way to reassign Review shortcuts
Since Anki doesn't ship with customizable keyboard shortcuts this add-on comes in very handy, indeed.
For those of you having trouble configuring Unicode shortcuts: You have to set the encoding of the python script to UTF8. To do this add the following three lines at the beginning of the script (right after the last #-commented line):
import sys
reload(sys)
sys.setdefaultencoding('utf8')
You should now be able to assign any Unicode key you want, Umlauts (e.g. 'ö' included).
Since Anki doesn't ship with customizable keyboard shortcuts this add-on comes in very handy, indeed.
For those of you having trouble configuring Unicode shortcuts: You have to set the encoding of the python script to UTF8. To do this add the following three lines at the beginning of the script (right after the last #-commented line):
import sys
reload(sys)
sys.setdefaultencoding('utf8')
You should now be able to assign any Unicode key you want, Umlauts (e.g. 'ö' included).


Good addon, ö doesn't work
This seems to be a pretty good addon. For some reason I can't get ö to work as the 4th key with Finnish keyboard.
Would be nice if there was a small delay on the add, like 0.2s or so, that you can't go through your question. Sometimes 2-3 questions go by since the little, accidental, holding of the key goes through questions so fast.
The 'ö'-trick mentioned in other post for german keyboard didnt work. I tried all kind of codes, UTF-8, binary and whatever I could find. Nothing seemed to work for the ö-bind.
Great work otherwise, though.
This seems to be a pretty good addon. For some reason I can't get ö to work as the 4th key with Finnish keyboard.
Would be nice if there was a small delay on the add, like 0.2s or so, that you can't go through your question. Sometimes 2-3 questions go by since the little, accidental, holding of the key goes through questions so fast.
The 'ö'-trick mentioned in other post for german keyboard didnt work. I tried all kind of codes, UTF-8, binary and whatever I could find. Nothing seemed to work for the ö-bind.
Great work otherwise, though.



Perfect
I can't live without it
I can't live without it


This is very useful
This plugin works great and you can customize it easily!
This plugin works great and you can customize it easily!

Extremely nice
As a new user it can be good to use the show answer - select difficulty steps. When you are more familiar with how studying in Anki works, this addon is a nice feature which allow you to focus on the stuying, by fewer keypresses and not getting distracted by the card's due times.
As a new user it can be good to use the show answer - select difficulty steps. When you are more familiar with how studying in Anki works, this addon is a nice feature which allow you to focus on the stuying, by fewer keypresses and not getting distracted by the card's due times.

German layout
Awesome plugin!
If anyone else has a german keyboard layout and wants to use 'ö' as the 4th key, you have to replace the 4th key (forgot what it was on the english layout) with u'\xf6'.
So then you have the lines
elif key in ["j", "k", "l", u'\xf6']:
and
elif key == u'\xf6':
Awesome plugin!
If anyone else has a german keyboard layout and wants to use 'ö' as the 4th key, you have to replace the 4th key (forgot what it was on the english layout) with u'\xf6'.
So then you have the lines
elif key in ["j", "k", "l", u'\xf6']:
and
elif key == u'\xf6':


Answer Key Remap "Mouse Clicks"
This add on is amazing! I'm wondering: does anyone know how to map the "1" (or "j" in this addon) key to a mouse-click?
This add on is amazing! I'm wondering: does anyone know how to map the "1" (or "j" in this addon) key to a mouse-click?


Excellent
*Very* handy – thanks for sharing this!
And if I may add: it would be great if you could incorporate an option to assign "Mark Note" and "Suspend Note" to a single key (as opposed to Shift + sth.).
*Very* handy – thanks for sharing this!
And if I may add: it would be great if you could incorporate an option to assign "Mark Note" and "Suspend Note" to a single key (as opposed to Shift + sth.).

Good and easily customizable
Good and if you want to customize more functionalities just look at source code of Anki on github here: https://github.com/dae/anki ,and modifiy the plugin according to your wish.
Good and if you want to customize more functionalities just look at source code of Anki on github here: https://github.com/dae/anki ,and modifiy the plugin according to your wish.

Convenient
This is what I was looking for!
This is what I was looking for!