/bear-anki-sync

A basic script to create Anki flashcards from Bear notes

Primary LanguagePythonMIT LicenseMIT

Bear Anki sync

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.

How to use

  1. Copy this repo and open terminal from the folder
  2. Install AnkiConnect plugin, if you haven't done that already
  3. Open AnkiConnect settings: Tools > Addons > Choose addon and press Config. Copy values webBindAddress and webBindPort
  4. Paste those values into main.py ANKI_CONNECT variable: http://webBindAddress:webBindPort
  5. Find the folder containing the bear database and set the full path in BEAR_DB_PATH variable
  6. Install pipenv on your system (I am assuming you already have python installed): brew install pipenv or pip install pipenv
  7. Install script dependencies: pipenv install
  8. Run the script: pipenv run sync

Features

  1. 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
  1. The script also supports Rem one-line flashcard definitions: Front :: Back