If I have a note with information on it, i.e. some YAML data at the top and text in the body, can I amend it as follows to make usable for your script:
---
Author:
Book: , p.
Original number:
Site:
Transcluded in:
Note creation date: yyyy-mm-dd
---
Tags: #communication #personality #presence #trust #perception
---
body of text here
<br>
###
<br>
<br>
<br>
<br>
*Footnotes*
And then below *Footnotes* I add:
---
Anki data:
START
{Note Type}
{Note Data}
END
Will the script pickup the Anki data and leave the rest of the note untouched, or will the text above it confuse the script?
I think that should be fine. The way I’ve set it up, the parser for converting Note type + Data -> Anki note only ever ‘sees’ text between START and END. So the text above shouldn’t confuse it.
@Pseudonium Yeah, that’s what I thought. I’ll give it a shot.
BTW, does it run through all the notes in the vault?
And if you run it a 2nd time, will anki cards get duplicated?
Thanks for building this so that I didn’t have to, hah!
I wonder if there’s a way to achieve some kind of syncing. E.g., if you update a note in Obsidian, is there a way to make sure the associated Anki card(s) get updated rather than creating new ones…? Hm.
So at the moment it works on a per-file basis. You’d have to go through the files individually.
I’ve set a flag to disallow duplicates (from AnkiConnect), but I haven’t tested it.
So there is a part of the AnkiConnect API that allows you to update an existing note rather than create a new note. I haven’t looked into it that much though.
Yeah hopefully that won’t be too much of a hassle. As long as the API gives me access to the text of the file, I shouldn’t have to make too many modifications.
I’m adding support for markdown formatting in the next release (so you can use bold, italics etc). It might be possible to auto-embed images as well, though I haven’t started working on that.
@Pseudonium: so if you have amended a card between the START and END, and you then run the script for a 2nd time on the file, it will not pick up those changes. Correct?