This is yet another implementation of a script to sync notes to Anki. I created this script for my personal use, but plan to improve it over time. If you have any questions, please open an issue.
The script creates flashcards under the tag #bear
.
- Copy this repo and open terminal from the folder
- Install AnkiConnect plugin, if you haven't done that already
- Open AnkiConnect settings: Tools > Addons > Choose addon and press Config. Copy values
webBindAddress
andwebBindPort
- Paste those values into main.py ANKI_CONNECT variable:
http://webBindAddress:webBindPort
- Find the folder containing the bear database and set the full path in BEAR_DB_PATH variable
- Install
pipenv
on your system (I am assuming you already have python installed):brew install pipenv
orpip install pipenv
- Install script dependencies:
pipenv install
- Run the script:
pipenv run sync
- You can define multi-line flashcards with #flashcards tag and with a text paragraph
Front #flashcards
Multiline
Back
Flashcard
This line won't be captured
- The script also supports Rem one-line flashcard definitions:
Front :: Back