Giter Club home page Giter Club logo

prty-shortcut-cards's Introduction

prty-shortcut cards - Simply pretty Anki cards for keyboard shortcuts

License

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!

example card

Installation

Using demo deck

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!

Manually add the note type

The note type can be also be manually created!

  1. Create a new note type (Ctrl+Shift+N -> Add)
  2. Select the new note type and click Fields
  3. Make sure the note has the exact following fields: Software, Action, Key Combination and Extra Key Combination. If you want to rename these, you have to change the front and back of the card.
  4. Save when done and now press Cards
  5. Copy src/front.html into Front Template, src/back.html into Back Template and src/style.css into Styles and save
  6. Done! You should now be able to create new notes of the prty-shortcut type!

Usage

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.

Using dark cards without night mode

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.

Support

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 :)

Development

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

prty-shortcut-cards's People

Contributors

ginger51011 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.