st3v3nmw / obsidian-spaced-repetition

Fight the forgetting curve by reviewing flashcards & entire notes on Obsidian.md
https://www.stephenmwangi.com/obsidian-spaced-repetition/
MIT License
1.45k stars 183 forks source link

[Bug]: Show Context in Cards #1026

Open SyedIrtiza555 opened 1 month ago

SyedIrtiza555 commented 1 month ago

Describe the bug

My Flashcard image

My Cram section shows the Author in context, which is not good for reversed card image

The context is already showing me that Robert Greene is the Author

To Reproduce

Ive described the bug above. Please check

Expected behavior

The context should not give

Screenshots

No response

OS of your device

Win10

Obsidian version

v1.5.3

Plugin version

v1.12.4

Installer version

No response

Additional context

No response

Config file

No response

ronzulu commented 1 month ago

Hi @SyedIrtiza555 context can be turned off within the plugin settings

image

SyedIrtiza555 commented 1 month ago

But the issue is that I need to see the context but, it reveals the author heading but not the first heading. It should behave like it is doing with the first heading

On Tue, Jul 23, 2024 at 7:48 AM Ronny Zulaikha @.***> wrote:

Hi @SyedIrtiza555 https://github.com/SyedIrtiza555 context can be turned off within the plugin settings

image.png (view on web) https://github.com/user-attachments/assets/ec6b3ded-f9a3-4104-b128-e4c6f1c45425

— Reply to this email directly, view it on GitHub https://github.com/st3v3nmw/obsidian-spaced-repetition/issues/1026#issuecomment-2244148288, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMNDYKV5E6UNFYRI5F5SJY3ZNXABBAVCNFSM6AAAAABLHXGP4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBUGE2DQMRYHA . You are receiving this because you were mentioned.Message ID: @.***>

ronzulu commented 1 month ago

I haven't understood what you are after.

Please write exactly what you are after for each of the cards

Card 1 Context: Question: Answer:

Card 2 Context: Question: Answer:

SyedIrtiza555 commented 1 month ago

The cram session is showing:

Book Name>Author> Robert Greene

But, I want it like this,

Book Name>..... Robert Greene

Although, the cram session is behaving as expected in the case of Summary i.e: Book Name>..... this this and this

But, in case of author it is showing me the frontside of the card, which I dont want to see

ronzulu commented 1 month ago

I think you are using the following text within the markdown file:

#flashcard

# Summary
?
this this and this

# Author
??
Robert Greene

Q1. Is that correct?


So the problem is that you are seeing the following: image

And you don't want to see the > Author displayed as part of the context.

Q2. Is that correct?


In typical usage the context is not used as part of the flashcard text. I.e. typical usage is separating out the context information from the flashcard text (the blank line between the # Context that doesn't give away the answer and Author is important:

# Context that doesn't give away the answer

Author
??
Robert Greene

The ?? signifies a "bidirectional" flashcard, meaning that there are two cards generated.

However, the context displayed is the same for both cards. Therefore you can't put # Author as part of the flashcard text.

Hope that helps

SyedIrtiza555 commented 1 month ago

Now you understood my problem.... I'll try '?'. Thankyou.

On Thu, Aug 1, 2024, 6:25 AM Ronny Zulaikha @.***> wrote:

I think you are using the following text within the markdown file:

flashcard

Summary

? this this and this

Author

?? Robert Greene

Q1. Is that correct?

So the problem is that you are seeing the following: image.png (view on web) https://github.com/user-attachments/assets/9f6ff840-36a3-4649-8977-0421dcf89802

And you don't want to see the > Author displayed as part of the context.

Q2. Is that correct?

In typical usage the context is not used as part of the flashcard text. I.e. typical usage is separating out the context information from the flashcard text (the blank line between the # Context that doesn't give away the answer and Author is important:

Context that doesn't give away the answer

Author ?? Robert Greene

The ?? signifies a "bidirectional" flashcard, meaning that there are two cards generated.

However, the context displayed is the same for both cards. Therefore you can't put # Author as part of the flashcard text.

Hope that helps

— Reply to this email directly, view it on GitHub https://github.com/st3v3nmw/obsidian-spaced-repetition/issues/1026#issuecomment-2261763193, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMNDYKRGJUJHLTTGOOT4Q33ZPGFA5AVCNFSM6AAAAABLHXGP4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRRG43DGMJZGM . You are receiving this because you were mentioned.Message ID: @.***>