anki-editor/README.org

35 lines
4.4 KiB
Org Mode
Raw Normal View History

2017-12-27 17:20:01 +01:00
anki-editor -- an Emacs package that helps you create Anki cards in Org-mode
* Requirements
2018-01-07 10:24:57 +01:00
- [[https://github.com/FooSoft/anki-connect#installation][anki-connect]], an Anki add-on which is required for this package to
interact with Anki.
- curl
2017-12-27 17:20:01 +01:00
* Usage
2018-01-07 10:24:57 +01:00
1. Download it and put it into your Emacs' =load-path=
2. =(require 'anki-editor)=
3. Write notes in org syntax, e.g. [[./examples.org][examples.org]]
- Headings of deck are tagged with =deck=
- Headings of note are tagged with =note=
- Custom properties of a note heading can be used to specify note
type and tags
- Subheadings of a note heading are fields of its note type
- The contents of field headings will be converted to html by
2018-01-08 11:20:11 +01:00
org-mode's html backend, with the latex syntax translated to
the Anki style
2018-01-07 10:24:57 +01:00
4. Command Cheat Sheet
2018-01-15 06:03:58 +01:00
| Command | Keybinding | Description |
|-----------------------------------------------+------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| =anki-editor-setup-default-keybindings= | N/A | Set up default keybindings. |
| =anki-editor-submit= | C-c a s | Send notes in current buffer to Anki. |
| =anki-editor-insert-deck= | C-c a i d | Insert a deck heading with the same level as current heading. With prefix, only insert the deck name. |
| =anki-editor-insert-note= | C-c a i n | Insert a note heading that's one level lower to current heading. The inserted heading will be structured with the property drawer and subheadings that correspond to the fields of the selected note type. |
| =anki-editor-export-heading-contents-to-html= | C-c a e | Export the contents of the heading at point to HTML. |
| =anki-editor-convert-region-to-html= | N/A | Convert and replace region to HTML. |
| =anki-editor-anki-connect-upgrade= | N/A | Upgrade anki-connect to the latest version. This will display a confirmation dialog box in Anki asking if you want to continue. The upgrading is done by downloading the latest code in the master branch of its Github repo. This is useful when new version of this package depends on the bugfixes or new features of anki-connect. |
*Not a native speaker, hope this README is clear enough. Happy hacking :)*
2017-12-27 17:20:01 +01:00
** Demo
2018-01-07 10:24:57 +01:00
[[./demo.gif]]