prty-shortcut
allows for quickly creating nice looking Anki cards for memorizing keyboard
shortcuts for different software. Shortcuts are formatted automatically, so by entering Ctrl K
and I
,
prty-shortcut
will insert the format below!
By installing the demo deck containing a few useful Firefox shortcuts, Anki will automatically
import the prty-shortcut
note type. Simply download this file
and press Ctrl+Shift+I in Anki, import the file and voilà! The
new card type will become available!
The note type can be also be manually created!
- Create a new note type (Ctrl+Shift+N ->
Add
) - Select the new note type and click
Fields
- Make sure the note has the exact following fields:
Software
,Action
,Key Combination
andExtra Key Combination
. If you want to rename these, you have to change the front and back of the card. - Save when done and now press
Cards
- Copy src/front.html into
Front Template
, src/back.html intoBack Template
and src/style.css intoStyles
and save - Done! You should now be able to create new notes of the
prty-shortcut
type!
I would recommend playing around with the notes to figure it out, but in essence prty-shortcut
will automatically
assume the formatting of your card. So, by entering "Ctrl Shift P" in Key Combination
, the card will be generated
as "Ctrl+Shift+P". The plusses inserted by prty-shortcut
means that these buttons are to be pressed simultaneously.
Some advanced shortcuts require two separate combinations. This is provided by Extra Key Combination
, and will
be formatted as Shotcut Combination
. This field is not required, and will be ignored if empty.
It is possible to change the CSS (styling, i.e. this file) of the notes so that the dark cards can be used without night mode. To do this, simply edit the card in Anki:
Ctrl+Shift+N, select prty-shortcut
and click Cards
), go to the Styling
section and swap place of the following lines:
.card {
and
.card.nightMode {
Now you will have inversed it all! If you never want the light cards, simple remove everything related to
.card
, and remove .nightMode
from the line containing .card.nightMode
.
If you like this deck and would like to support the creation of more like it, don't buy me a coffee. Donate your money to those who need it most. Personally I recommend The GiveWell Maximum Impact Fund, where your money will make the biggest impact on someones life.
If you instead want to help the development of Anki, consider supporting the developers of Anki and AnkiDroid.
If you decide to support any of these causes, please contact me! It would make my day :)
All card variants can be previewed using examples/index.html
. Run a local webserver, using the same
directory as this README
as root, and click your way to examples/index.html
. To do this using python, run
python3 -m http.server 1337
to run a server on http://127.0.0.1:1337