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

Plugin adds all content that matches regex, even if deck not specified #585

Open advikchau opened 1 month ago

advikchau commented 1 month ago

I'm currently using the "header" regex, where whenever there's a header, the content below it gets converted into a card. This makes it easy to quickly create new cards. However, this means that wherever there's a header, it automatically gets converted to a card and added to the "Default" deck. Is there a way to disable adding to the default deck and instead only add when a deck (using the deck formatting syntax) is specified? Or have the option to disable the default deck entirely?

advikchau commented 1 month ago

Temporarily fixed this by setting the regex to only use Header level 2 and below, so I can reserve header 1s for normal usage.