anki icon indicating copy to clipboard operation
anki copied to clipboard

Feature suggestion: alternative cloze note generation

Open TRIAEIOU opened this issue 2 years ago • 1 comments

An alternative way of generating notes is using one note per subject with clozes for the different questions, for instance using Flexible cloze 2 (GitHub) or similar note style. The advantage of this is keeping related questions in the same place, facilitating updating existing subjects. It also corresponds well with note taking from a lecture for instance (the entire lecture on on note). A feature suggestion would be to be able to generate one note per file:

  • Having cloze shortcuts (Ctrl+Shift+C/Ctrl+Alt+C).
  • Configurable target note type/model.
  • Using the first top level heading (#) as Title field (field name configurable).
  • Running the remaining document through marked as is.
  • Extra: ensure the generated HTML is "compatible" with the Anki editor (doesn't use <p> etc.). I have an extension (GitHub) that inserts Markdown editors in Anki, it uses unified.js for Markdown ↔ HTML conversions and contains code to adapt the HTML to "Anki style HTML".

Thoughts? I could probably create a PR for it but it would require me to read up on the Anki for VSCode source and I think the actual implementation (excluding the HTML compatibility) would be fairly simple so if anyone who already knows the code base is up for it that would be great.

TRIAEIOU avatar Feb 15 '23 11:02 TRIAEIOU

I like the idea of having a Cloze shortcut Ctrl+Shift+C or Ctrl+Alt+C where the user could highlight a word and with a keyboard combination make it a Cloze

rleyvasal avatar Feb 20 '23 16:02 rleyvasal