leonfroschauer1 downloadsCreates Anki-compatible cloze deletions scoped to card blocks between horizontal rules.
A lightweight Obsidian plugin that brings Anki-style cloze deletion shortcuts ({{cN::text}}) to your markdown notes, scoped specifically to individual flashcard blocks.
A cloze deletion is a fill-in-the-blank flashcard. Instead of formulating explicit question-and-answer pairs, you mask key terms inside a coherent statement or definition.
Cards must be enclosed between horizontal rules (---):
---
Cloze
This is an example {{c1::cloze}} card. You can {{c2::hide}} different text parts {{c2::with ease}}.
---
ADDED: Cloze %%3l99il%%
This is another {{c1::example}} cloze card.
---
c1, c2, ...) are counted independently within each --- ... --- block. Every new card block starts at c1.--- block at the start of a note) is automatically detected and protected.{{c1::can {{c2::{{c3::happen}}}}}}), which are invalid in Anki.Syntax: {{cN::Text}} where N is the card index.
Both commands support selected text (wraps the selection) and empty selection (inserts {{cN::}} with the cursor placed inside ready to type).
Ctrl + Shift + C (or Cmd + Shift + C on macOS)c1 to c2, or starts at c1 if none exist).{{cN+1::...}}, generating a separate flashcard in Anki.Ctrl + Alt + C (or Cmd + Option + C on macOS)c1 if none exist).{{cN::...}}. All clozes sharing the same number in a card block are tested together.Shortcuts are registered natively with Obsidian. You can customize them anytime in Settings -> Hotkeys by searching for Anki Cloze.
main.js and manifest.json from the latest GitHub Release.<Vault>/.obsidian/plugins/anki-cloze/ in your Obsidian vault.manifest.json and main.js inside that folder.