Skip to content
Rubaiyat Khondaker edited this page Dec 6, 2020 · 14 revisions

Current features

  • Note formatting with custom note types - You're not limited to the 6 built-in note types of Anki.
  • Updating notes from file - When running the script on a file again, it'll automatically update existing notes in Anki, preserving scheduling information.
  • Tag formatting.
  • Deck formatting on a per-file basis.
  • Markdown formatting.
  • Math formatting.
  • Image formatting.
  • Audio formatting
  • Deleting notes from the file.
  • Reading from all files in a directory automatically - recursively too!
  • Inline notes - Shorter syntax for typing out notes on a single line.
  • Cloze formatting - A more compact syntax to do Cloze text.
  • Obsidian Integration - Currently, this only includes a link to the file that made the flashcard, appended to the first field of your card.
  • Regex - Using regular expressions, add custom syntax to generate notes that make sense for you. Some examples:
    # Style
    This style is suitable for having the header as the front, and the answer as the back
    
    Header 1
    Q: How do you use this style?
    A: Just like this.
    
    Question 1
    In Neuracache style, to make a flashcard you do #flashcard
    The next lines then become the back of the flashcard
    
    Neuracache 1
    How do you use ruled style?
    ---
    You need at least three '-' between the front and back of the card.
    
    Ruled 1
    | Why might this style be useful? |
    | ------ |
    | It looks nice when rendered as HTML in a markdown editor. |
    
    Table 2
    The idea of {cloze paragraph style} is to be able to recognise any paragraphs that contain {cloze deletions}.
    
    Cloze 1

Note that all custom syntax is off by default, and must be programmed into the script via the config file - see Custom syntax for instructions.

History of script development

However, you don't need to have your notes be files of flashcards to use this script! You just need to be fine with visibly embedding flashcards in your notes, and keeping them there for future reference/editing. The script will ignore anything it doesn't think is a flashcard, so you're free to add context/information not needed for Anki to your notes.

Setup

Usage

Steps for new users

Deck formatting

Note formatting

Deleting notes

Inline notes

Cloze formatting

By default, the script adds to the current profile in Anki.

Troubleshooting

Technical

Clone this wiki locally