reuseman / flashcards-obsidian

🎴 An Anki plugin for Obsidian.md
MIT License
872 stars 86 forks source link

Changing already existing "#card" to "#card-reverse" doesn't generate reverse flashcard #57

Open kestivvi opened 2 years ago

kestivvi commented 2 years ago

NOTE: Do you have the last version of the plugin? If not that's probably the problem

Describe the bug When you create a new flashcard with a tag #card, then generate flashcards with a command "Flashcards: Generate for the current file", then you change this "#card" tag to "#card-reverse" and run command "Flashcards: Generate for the current file" it says "Updated Successfully 1/1 cards.". But in the Anki nothing has changed. There is still only one card and there is not a reversed version of that card.

To Reproduce

###### Question #card
answer
  1. Run command "Flashcards: Generate for the current file"
  2. Change "#card" tag to "#card-reverse". So it should look like this
###### Question #card-reverse
answer
  1. Run command "Flashcards: Generate for the current file"
  2. A notification that one card has been updated appears
  3. In the Anki there is still only one card

Expected behavior I expected that by changing "#card" to "#card-reverse" and running command to generate flashcards, the plugin will generate in Anki a reversed version of the changed flashcard.

Additional context I think that maybe this isn't a bug, but an enhancement that hasn't been done yet. But when you're using this plugin it seems like a bug, so I report a bug.

github-actions[bot] commented 2 years ago

Thank you for taking the time to report the issue and help me to make the project better! 🙂

raddevon commented 2 years ago

I'm having a similar problem using the inline style (:: and :::), although in this case, I don't get the notification that a card has been updated when I switch from regular to reversed. Instead, I get the notification that everything is up-to-date and the card does not change. If I start with a reversed card (:::), it doesn't seem to be reversed in Anki when synced.

Comprehensive-Jason commented 1 year ago

I'm having the same issue as @kestivvi.