l3kn / org-fc

Spaced Repetition System for Emacs org-mode
https://www.leonrische.me/fc/index.html
GNU General Public License v3.0
258 stars 31 forks source link

Quick question regarding normal card format #120

Closed vkar-hub closed 8 months ago

vkar-hub commented 8 months ago

Hi,

I notice that the basic card format in the demo is:

* Front
Front
** Back
Back

But while using it, I get an ID mismatch if I'm on the back portion and the back heading doesn't open up when I click show, so the format below works better.

* Front
Back

Does it make much of a difference? Additionally, when using the first format, the back heading does not open up automatically. Is there a way to get that to happen? I'd prefer to use the second format if it doesn't affect the program in anyway.

Thanks

l3kn commented 8 months ago

Org-fc currently expects the cursor (point) to be at the heading or within the contents of the flashcard during review. When using the first format and with the cursor at the “back heading”, the card will not be flipped because org-fc compares heading IDs to make sure it won't update the wrong card during review.

Besides the second format being more compact and different parts of the heading/card being shown before and after flipping it, there's no difference between both formats.

Usually, the cursor should be placed in the correct stop by the review, did you move the cursor before trying to flip the card?

vkar-hub commented 8 months ago

Yes, I had my cursor in the back heading. Thank you for the clarification.

l3kn commented 8 months ago

If you regularly flip cards after moving around in the heading that is reviewed, we could add some code that tries to moves up the hierarchy of headings until it finds one belonging to a flashcard.

vkar-hub commented 8 months ago

Yes, I move it around a fair bit before flipping but I don't think there's a need to go through the trouble of adding code. I'll just use the compact format which does exactly what I want.