taylormitchell / ankify_roam

A command-line tool which brings flashcards created in Roam to Anki.
MIT License
36 stars 6 forks source link

Is there a way to add cards to subdecks? #10

Closed aseals closed 3 years ago

aseals commented 3 years ago

Is there an existing method to direct a card to a specific subdeck within a deck?

Screen Shot 2020-12-13 at 10 23 31 AM
taylormitchell commented 3 years ago

Hey @aseals

I'd never tried before but it turns out you can! You just need to give the deck and subdeck name separated by double colon. In your case, you could add something to the "Consonants, Vowels, & Sounds" deck with the following:

ankify_roam add my_roam_db.json --deck="Hebrew::Consonants, Vowels, & Sounds"

I hope that helps!

aseals commented 3 years ago

Thank you, that worked perfectly!

I tried replicating the same thing in-line on Roam similar to "2+2={4} #[[[[ankify]]:deck="Math::Addition"]]", however, it did not work quite as well. Adding subdecks in-line this way would be useful when automatically syncing Roam & Anki so all the cards go to the right place.

taylormitchell commented 3 years ago

Hey @aseals

I just pushed a change which should make this work. Can you try installing the latest version and see if it does?

pip install git+https://github.com/taylormitchell/ankify_roam.git
aseals commented 3 years ago

Hey @taylormitchell

Apologies for the delay. I just tested this out and it works like a charm!

taylormitchell commented 3 years ago

Great!