Plugin to add flashcards from a text or markdown file to Anki. Run in Obsidian as a plugin, or from the command-line as a python script. Built with Obsidian markdown syntax in mind. Supports user-defined custom syntax for flashcards.
See the Trello for planned features.
Check out the Wiki! It has a ton of information, including setup instructions for new users. I will include a copy of the instructions here:
Have Obsidian downloaded
Search the 'Community plugins' list for this plugin
Install the plugin.
In Anki, navigate to Tools->Addons->AnkiConnect->Config, and change it to look like this:
{ "apiKey": null, "apiLogPath": null, "webBindAddress": "127.0.0.1", "webBindPort": 8765, "webCorsOrigin": "http://localhost", "webCorsOriginList": [ "http://localhost", "app://obsidian.md" ] }
Restart Anki to apply the above changes
With Anki running in the background, load the plugin. This will generate the plugin settings.
You shouldn't need Anki running to load Obsidian in the future, though of course you will need it for using the plugin!
To run the plugin, look for an Anki icon on your ribbon (the place where buttons such as 'open Graph view' and 'open Quick Switcher' are). For more information on use, please check out the Wiki!
obstoanki_setup.py
from the releases page, and place it in the folder you want the script installed (for example your notes folder). obstoanki_setup.py
, for example by double-clicking it in a file explorer. This will download the latest version of the script and required dependencies automatically. Existing users should be able to run their existing obstoanki_setup.py
to get the latest version of the script. obsidian_to_anki.py
, for example by double-clicking it in a file explorer. This will generate a config file, obsidian_to_anki_config.ini
.The script needs to be able to:
Current features (check out the wiki for more details):
**/*.excalidraw.md
- Ignore all files that end in .excalidraw.md
Template/**
- Ignore all files in the Template
folder (including subfolders)**/private/**
- Ignore all files in folders that are called private
no matter where they are in the vault[Pp]rivate*/**
- Ignore all files and folders in the root of the vault that start with private
or with Private
This is how to use::Remnote single-line style
# Style This style is suitable for having the header as the front, and the answer as the back
Q: How do you use this style? A: Just like this.
In Neuracache style, to make a flashcard you do #flashcard The next lines then become the back of the flashcard
How do you use ruled style? --- You need at least three '-' between the front and back of the card.
| Why might this style be useful? | | ------ | | It looks nice when rendered as HTML in a markdown editor. |
The idea of {cloze paragraph style} is to be able to recognise any paragraphs that contain {cloze deletions}.
Note that all custom syntax is off by default, and must be programmed into the script via the config file - see the Wiki for more details.