taylormitchell / ankify_roam

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

Feature request: it would be great if I could suspend or unsuspend anki cards from roam, with tags #48

Closed Etyre closed 2 years ago

Etyre commented 2 years ago

My workflow entails sometimes suspending or un-suspending anki notes, depending on a number of factors.

It would be great if I could do this, in roam, with a tag something.

I'm imagining something like the following, in roam...

- What is the capital of France? #ankify #suspend
   - Paris

...changes the relevant card's state to "suspended" in anki, but that when you remove the #suspend tag, that un-suspends it.

This is helpful because it would allow me to see, from roam, which cards I've suspended. Currently I might think that I need an anki card for some question, and see that there's already an existing one, not realizing that the associated card is suspended, and not in my reviews. And because of that, I can't be sure that a card isn't suspended, which means that I have to go and look it up in my anki database, defeats most of the point of this.

But if I could suspend and unsuspend notes with tags, I could do all this from roam, which I think would allow me to do 100% (with some edge case suggestions) of my anki management from Roam!

(I'm thinking about if there's a way that I could do this without any changes to ankify_roam. The best that I can come up with right now is writing a script that filters for all notes that have the #ankify tag and the #suspend tag, and suspends them, and then filters for all notes that have the #ankify tag, but not the #suspend tag, and un-suspend those. I'm not a software engineer, but I might spend a little bit of time tinkering with this.)

taylormitchell commented 2 years ago

@Etyre Added this feature in v0.1.4 #36. To suspend a note from Roam, add the #[[ankify_roam: suspend=True]] tag to it. Any card which inherits that tag will also be suspended. You can also insure a note isn't suspended by tagging it with #[[ankify_roam: suspend=False]]. See https://github.com/taylormitchell/ankify_roam/blob/master/CHANGELOG.md

Etyre commented 2 years ago

This is great! : )

Thank you!