├── LICENSE ├── README.md ├── assets ├── .gitkeep ├── Example.xcf └── example.png ├── demo └── prty_shortcut_cards_firefox_demo.apkg ├── examples └── index.html └── src ├── back.html ├── front.html └── style.css /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright © 2022 Emil Jonathan Eriksson 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # prty-shortcut cards - Simply pretty Anki cards for keyboard shortcuts 2 | 3 | [](https://github.com/ginger51011/prty-shortcut-cards/blob/main/LICENSE) 4 | 5 | `prty-shortcut` allows for quickly creating nice looking Anki cards for memorizing keyboard 6 | shortcuts for different software. Shortcuts are formatted automatically, so by entering `Ctrl K` and `I`, 7 | `prty-shortcut` will insert the format below! 8 | 9 |  10 | 11 | ## Installation 12 | 13 | ### Using demo deck 14 | 15 | By installing the demo deck containing a few useful Firefox shortcuts, Anki will automatically 16 | import the `prty-shortcut` note type. Simply download [this file](./demo/prty_shortcut_cards_firefox_demo.apkg) 17 | and press Ctrl+Shift+I in Anki, import the file and _voilà_! The 18 | new card type will become available! 19 | 20 | ### Manually add the note type 21 | 22 | The note type can be also be manually created! 23 | 24 | 1. Create a new note type (Ctrl+Shift+N -> `Add`) 25 | 2. Select the new note type and click `Fields` 26 | 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. 27 | 4. Save when done and now press `Cards` 28 | 5. Copy [src/front.html](./src/front.html) into `Front Template`, [src/back.html](./src/back.html) into `Back Template` and [src/style.css](./src/style.css) into `Styles` and save 29 | 6. Done! You should now be able to create new notes of the `prty-shortcut` type! 30 | 31 | ## Usage 32 | 33 | I would recommend playing around with the notes to figure it out, but in essence `prty-shortcut` will automatically 34 | assume the formatting of your card. So, by entering _"Ctrl Shift P"_ in `Key Combination`, the card will be generated 35 | as "_Ctrl+Shift+P"_. The plusses inserted by `prty-shortcut` means that these buttons are to be pressed simultaneously. 36 | 37 | Some advanced shortcuts require two separate combinations. This is provided by `Extra Key Combination`, and will 38 | be formatted as `Shotcut Combination`. This field is not required, and will be ignored if empty. 39 | 40 | ### Using dark cards without night mode 41 | 42 | It is possible to change the CSS (styling, i.e. [this file](/src/style.css)) of the notes so that the dark cards can be 43 | used without night mode. To do this, simply edit the card in Anki: 44 | 45 | Ctrl+Shift+N, select `prty-shortcut` and click `Cards`), go to the `Styling` section and swap place of the following lines: 46 | 47 | ```css 48 | .card { 49 | ``` 50 | 51 | and 52 | 53 | ```css 54 | .card.nightMode { 55 | ``` 56 | 57 | Now you will have inversed it all! If you never want the light cards, simple remove everything related to 58 | `.card` , and remove `.nightMode` from the line containing `.card.nightMode`. 59 | 60 | ## Support 61 | 62 | 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. 63 | Personally I recommend [The GiveWell Maximum Impact Fund](https://www.givewell.org/maximum-impact-fund), where your money will make the biggest 64 | impact on someones life. 65 | 66 | If you instead want to help the development of Anki, consider supporting the developers of [Anki](https://github.com/ankitects/) and [AnkiDroid](https://opencollective.com/ankidroid). 67 | 68 | If you decide to support any of these causes, please contact me! It would make my day :) 69 | 70 | ## Development 71 | 72 | All card variants can be previewed using `examples/index.html`. Run a local webserver, using the same 73 | directory as this `README` as root, and click your way to `examples/index.html`. To do this using python, run 74 | 75 | ``` 76 | python3 -m http.server 1337 77 | ``` 78 | 79 | to run a server on http://127.0.0.1:1337 80 | -------------------------------------------------------------------------------- /assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ginger51011/prty-shortcut-cards/b8538a2ea60db5492a15026ae55b196eb74d7596/assets/.gitkeep -------------------------------------------------------------------------------- /assets/Example.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ginger51011/prty-shortcut-cards/b8538a2ea60db5492a15026ae55b196eb74d7596/assets/Example.xcf -------------------------------------------------------------------------------- /assets/example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ginger51011/prty-shortcut-cards/b8538a2ea60db5492a15026ae55b196eb74d7596/assets/example.png -------------------------------------------------------------------------------- /demo/prty_shortcut_cards_firefox_demo.apkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ginger51011/prty-shortcut-cards/b8538a2ea60db5492a15026ae55b196eb74d7596/demo/prty_shortcut_cards_firefox_demo.apkg -------------------------------------------------------------------------------- /examples/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 |