All Projects → keiqu → inka

keiqu / inka

Licence: GPL-3.0 license
Command-line tool for adding flashcards from Markdown files to Anki

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to inka

mpvacious
Adds mpv keybindings to create Anki cards from movies and TV shows.
Stars: ✭ 286 (+853.33%)
Mutual labels:  spaced-repetition, anki
mnemocards
In addition to helping you memorise, this code helps you do other things that I don't remember...
Stars: ✭ 34 (+13.33%)
Mutual labels:  anki, anki-flashcards
brain-brew
Automated Anki flashcard creation and extraction to/from Csv
Stars: ✭ 55 (+83.33%)
Mutual labels:  anki, anki-flashcards
anki-apkg-export
📖 Generate decks for Anki (spaced repetition software)
Stars: ✭ 124 (+313.33%)
Mutual labels:  spaced-repetition, anki
anki-md
A markdown to anki flash cards converter
Stars: ✭ 22 (-26.67%)
Mutual labels:  spaced-repetition, anki
alfred-anki
Create New Cards into any decks with any "Note Type".
Stars: ✭ 42 (+40%)
Mutual labels:  anki, anki-flashcards
notes
A miscellany of thoughts.
Stars: ✭ 18 (-40%)
Mutual labels:  spaced-repetition, anki
ForgetMeNot
A flashcard app for Android.
Stars: ✭ 234 (+680%)
Mutual labels:  spaced-repetition, anki
leetcode-anki
Anki cards generator for Leetcode
Stars: ✭ 166 (+453.33%)
Mutual labels:  anki
unified-remote-anki
Unified Remote for Anki
Stars: ✭ 23 (-23.33%)
Mutual labels:  anki
cramkle
Web-based flashcard studying app
Stars: ✭ 26 (-13.33%)
Mutual labels:  spaced-repetition
deepcourse
Learn the Deep Learning for Computer Vision in three steps: theory from base to SotA, code in PyTorch, and space-repetition with Anki
Stars: ✭ 117 (+290%)
Mutual labels:  anki
Kindle2Anki
Export Vocabulary Builder to Anki APKG
Stars: ✭ 84 (+180%)
Mutual labels:  anki
Lazycard
A simple flashcard application where cards are formatted with Markdown.
Stars: ✭ 18 (-40%)
Mutual labels:  spaced-repetition
Game2Text
Complete toolbox for gamifying language learning
Stars: ✭ 86 (+186.67%)
Mutual labels:  anki
awesome-supermemo
A list of resources which can be used with SuperMemo.
Stars: ✭ 72 (+140%)
Mutual labels:  spaced-repetition
popup-dictionary
Pop-up Dictionary Add-on for Anki
Stars: ✭ 67 (+123.33%)
Mutual labels:  anki
kanjigrid
Fork of the Kanji Grid addon for Anki
Stars: ✭ 21 (-30%)
Mutual labels:  anki
supermemo-wine
Project to make SuperMemo for Windows editions runnable with Wine
Stars: ✭ 56 (+86.67%)
Mutual labels:  spaced-repetition
mini-format-pack
Extends Anki 2.1 with a number of additional text formatting buttons
Stars: ✭ 43 (+43.33%)
Mutual labels:  anki-flashcards

inka

Downloads PyPi Tests CI Code style: black Codecov

Automatically add your Markdown flashcards to Anki.

Installation

Install inka:

python3 -m pip install inka --upgrade

Requirements

Why

I've been using Anki for a long time, and at some point my notes turned into just lists of question/answer pairs, from which I then created Anki cards. The process of creating flashcards in Anki took a long time, so I decided to write a Python script to automate it. With more and more features added, the script has evolved into the command-line tool you can see now.

inka allows you to use full power of Markdown when creating flashcards. The program is also extensively tested.

Features

Usage

Creating Cards

In order for the program to be able to separate cards from all the rest of the text in the file, you need to enclose them between two ---:

---

Deck: Life Questions

Tags: learning life-questions

1. What is the answer to the Ultimate Question of Life, the Universe, and Everything?

> 42

2. If it {{c1::looks like a duck, swims like a duck, and quacks like a duck}}, then it is a {{c2::duck}}.

---

You can create any number of such sections in the file.

⚠️ This means that you should avoid using the --- syntax anywhere else in the file for inka to work correctly. There are exceptions, and you can read about them in documentation.

Inside the section, you can specify the name of the deck to which the cards will be added, and tags for the cards. If deck name isn't specified, then the one from the config is used (Default by default). The deck name is written after Deck:, and tags for all cards after Tags: with spaces between each tag.

Two types of notes are supported:

  • Front/Back: every question starts with number followed by period (e.g. 1., 2. - Markdown ordered list syntax) and every line of the answer starts with > (Markdown quote syntax). Question and answer can span multiple lines.
  • Cloze: same as Front/Back notes, Cloze notes start with number followed by period (Markdown ordered list syntax). inka supports three versions of syntax for cloze deletions:
    • Anki syntax: {{c1::hidden text}}
    • Short explicit syntax: {1::hidden text} or {c1::hidden text}
    • Short implicit syntax: {hidden text}

More info and examples on the creating cards documentation page.

Adding Cards to Anki

inka will create custom note types for Front/Back and Cloze notes. If you want to use different ones, you can change note types in the config.

Add cards from the file:

inka collect path/to/cards.md

Or from all Markdown files in a directory:

inka collect path/to/directory

You can also pass multiple paths at once:

inka collect path/to/cards.md path/to/folder

You can find more information on the documentation page.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].