st3v3nmw / obsidian-spaced-repetition

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

multiple cloze #1016

Closed s1avash26 closed 2 days ago

s1avash26 commented 3 months ago

Is your feature request related to a problem? Please describe.

a simple request.

Describe the solution you'd like

Hello, I really liked this plugin and want to use it, sometimes I want to highlight more than one word in a sentence to use it "spaced repetition" but it's shown in 2 separate cards, if they appear in one card and I click on "show the answer" and show both of them at the same time in same page it would be great. could you please add this feature. Thank you so much <3

Additional context

No response

ronzulu commented 3 months ago

Hi @s1avash26

@MotaOcimar has contributed some code, currently in the process of being reviewed before being included in the mainstream release.

If you could look at https://github.com/st3v3nmw/obsidian-spaced-repetition/pull/943 the section called "Classic Clozes", I believe that that will give you what you are after.

Cheers Ronny

st3v3nmw commented 4 days ago

Hi.

With the new cloze patterns, I think this is now supported:

==[123;;]answer[;;hint]==

For instance, this pattern picks up ==highlights== but you can add Anki-like sequencing. For instance ==1;;this== and ==1;;this== creates a single card (similar to Anki's {{c1:this}} and {{c1::this}} creates a single card):

image

You can also add hints to your clozes, so for instance ==this;;hint== will be rendered as:

image

s1avash26 commented 3 days ago

Thank you so much, this works for me {{1;;this}} and {{1;;this}} creates a single card.