UNMAINTAINED Generate org-drill cards from org tables
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
CONTRIBUTING.md
COPYING
Cask
Makefile
README.md
org-drill-table.el

README.md

org-drill-table

DEPRECATION NOTICE: I've found Anki to be significantly more practical than org-drill for language learning, so this package isn't getting a ton of love. 😅 I'm keeping this up in cos people might find it useful, but it's not actively updated.


Easily generate org-drill cards using org-mode tables.

Summary

Some types of information, such as vocabulary lists, yearn to be represented in tables. However, org-drill requires individual headlines with the "drill" tag; creating these can be laborious and it is difficult to get an overview of your cards when the buffer is folded.

This package provides a command, org-drill-table-generate, that will generate drill cards based on an org-mode table in the current subtree. The cards will be inserted under a new "Cards" heading in the current tree.

For example, given the following org headline,

* Vocab
| English   | Spanish |
|-----------+---------|
| Today     | Hoy     |
| Yesterday | Ayer    |
| Tomorrow  | Mañana  |

invoking org-drill-table-generate will generate cards for each table row:

* Vocab
:PROPERTIES:
:DRILL_HEADING: Noun
:DRILL_CARD_TYPE: twosided
:DRILL_INSTRUCTIONS: Translate the following word.
:END:
| English   | Spanish |
|-----------+---------|
| Today     | Hoy     |
| Yesterday | Ayer    |
| Tomorrow  | Mañana  |
** Cards
*** Noun                                                            :drill:
:PROPERTIES:
:DRILL_CARD_TYPE: twosided
:END:
Translate the following word.
**** English
Today
**** Spanish
Hoy
*** Noun                                                            :drill:
:PROPERTIES:
:DRILL_CARD_TYPE: twosided
:END:
Translate the following word.
**** English
Yesterday
**** Spanish
Ayer
*** Noun                                                            :drill:
:PROPERTIES:
:DRILL_CARD_TYPE: twosided
:END:
Translate the following word.
**** English
Tomorrow
**** Spanish
Mañana

org-drill-table-generate checks the existing list of cards so it does not add duplicates.

This package provides an additional command, org-drill-table-update, which can be added to org-ctrl-c-ctrl-c-hook.

Installing

You will need Emacs 24+, make and Cask to build the project.

cd org-drill-table
make && make install

Contributing

Yes, please do! See CONTRIBUTING.md for guidelines.

License

See COPYING. Copyright (c) 2014 Chris Barrett.