Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dtgoitia/push_second_brain_notes_to_anki
https://github.com/dtgoitia/push_second_brain_notes_to_anki
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dtgoitia/push_second_brain_notes_to_anki
- Owner: dtgoitia
- Created: 2022-12-08T12:12:30.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T12:48:27.000Z (about 2 years ago)
- Last Synced: 2024-10-28T13:55:21.181Z (2 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Installation
```shell
python -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
```## Usage
1. Start Anki.
2. Run program:
```shell
python -m add_and_update_note_files_to_anki \
--root /second/brain/path
```The program will look for any file with the `.anki.md` extension (aka _note files_) inside the `/second/brain/path` directory, and upsert them into your Anki collection.
## Key info
The _note files_ must follow this format:
```txt
---
note_id: 1670503224594
deck_name: Stuff to remember
model_name: My best Note type
tags: root_topic::subtopic
---
## QuestionTEST My Question _italic_ a
## Answer
My Answer **bold** and foo = "bar":
do
your
stuff## Source
Nice source
```* The H2 headers will be used as the _field names_ for the _note_ . The content below each header is used as the _field value_ for the note.
* `note_id` (optional): if omitted, the program will create a new card in Anki and update the file with the ID of the newly created Note in Anki. Else, if will attempt to update an existing card, and fail if the provided `note_id` is not found in Anki.