ObsidianToAnki / Obsidian_to_Anki

Script to add flashcards from text/markdown files to Anki
GNU General Public License v3.0
1.41k stars 125 forks source link

A more efficient way of updating tags + Scan current file only #584

Open MisterPresident opened 1 month ago

MisterPresident commented 1 month ago

This pull request is just a more efficient way of updating tags (using updateNoteTags vs. removeTags + addTags). This speeds up the generation task, especially if you have a big vault (2k notes) and a lot of tags in Anki (64k cards with ~16k tags). Alltogehter It should prevent Anki from dying due to a big request-payload.

Moreover, I added a command to scan the current file only.

image

This should fix #565. Maybe helps on #428, #354, #326.