I want to thank @Pseudonium, @ryanjamurphy, @Klaas, and others for the terrific script. It has been useful already, but Iām wondering whether it might be possible to extend it such that it is useful for Zettelkasten.
For those of us who use Obsidian as a Zettelkasten system, one challenge we face as our list of āzettelā notes grows is how to review them over the course of weeks, months, and years. Anki seems like one way to accomplish that. By exporting the zettel notes, which can be one idea, an index of ideas, or MOCs per file, to Anki, Anki can be used for review, reminder, and serendipityāseeing connections between old notes and new.
My Obsidian vault contains over a thousand Research Notes and Literature Notes, and each note type is formatted just a little differently with Markdown on the basis of its purpose and how old it is (2-year old notes donāt look like Julyās notes, unforunately). The differences among the notes make it challenging to use the Obsidian to Anki script and its standard regex expressions. Iāve found a workaround to this problem that is 80% effective by cloning the vault and processing the cloned .md files through BBedit and various regex āsearch and replaceā actions. That process is labor-intensive and doesnāt resolve the 20% of odd cases in my vault.
So, my question: Can either the script be modified or a new regex be developed that strips line 1 of every file as the front of an Anki card and then strips every subsequent line, to the end of the file, for the back of the card regardless of what markdown characters appear on lines 2ā>EOF (e.g., #, ##, ā, *, \n, \n\n\n, etc.)? I have tried to develop a regex to accomplish this myself by modifying the Header Paragraph Style regex, but I havenāt had much luck, perhaps because the original script is intended to pull multiple Anki notes from a single file rather than one Anki note from one file.
Any thoughts on either the use case I imagine here or how it might be accomplished are welcome.
Grateful again for the work that has gone into the script since August.