ObsidianToAnki / Obsidian_to_Anki

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

Make cards go to decks based on folder structure #461

Open rad-ed opened 10 months ago

rad-ed commented 10 months ago

Is there a way to make it so that all new folders sync to sundecks of the same name?

I.e. the folder foo/bar/baz in obsidian places cards in the deck foo::bar::baz in Anki.

FerreyraDamian commented 9 months ago

I was wondering the same. There is another plugin that does this but it's not obsidian-to-anki (It generates some window similar to Anki, I don't want this).

FerreyraDamian commented 9 months ago

I just want this bc I want to see a full graph of my notes and re-doing them one by one... Instead of having many flashcards in a single note just to send them to the same deck. 2nd semester we review math theorems and I don't want to do repeated flashcards.

jasonho1308 commented 8 months ago

Hi, I have implemented this feature in pull request #429 long time ago. Will try to merge it later!

norcx commented 6 months ago

When will this feature be added please, it's really useful!

norcx commented 6 months ago

I've found that this can be achieved using a templater plugin. Just customize a script to get the current file path and speak/replace it with ::, so as to get the string "TARGET DECK: Folder1::Folder2::filename"

jasonho1308 commented 6 months ago

I've found that this can be achieved using a templater plugin.

Just customize a script to get the current file path and speak/replace it with ::, so as to get the string "TARGET DECK: Folder1::Folder2::filename"

My pull request #429 should work, but I have no time to merge it now, u can try it first