flashcards-obsidian icon indicating copy to clipboard operation
flashcards-obsidian copied to clipboard

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

Open kestivvi opened this issue 4 years ago • 3 comments

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

  • Steps to reproduce the behavior:
  1. Open some file md in obsidian
  2. Type in new flash card with heading "#card" tag, in the next line an answer and the third line empty "new line". For example
###### 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.

kestivvi avatar Sep 24 '21 20:09 kestivvi

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

github-actions[bot] avatar Sep 24 '21 20:09 github-actions[bot]

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.

raddevon avatar Jun 09 '22 13:06 raddevon

I'm having the same issue as @kestivvi.

Comprehensive-Jason avatar Oct 31 '22 14:10 Comprehensive-Jason