Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Confusing Cloze Pattern Config #1155

Open
MotaOcimar opened this issue Oct 29, 2024 · 0 comments · May be fixed by #1158
Open

[Bug]: Confusing Cloze Pattern Config #1155

MotaOcimar opened this issue Oct 29, 2024 · 0 comments · May be fixed by #1158
Labels
bug Something isn't working

Comments

@MotaOcimar
Copy link
Contributor

Describe the bug

If the user adds a "Cloze Pattern" with a highlight different from the default provided, the checkbox Convert ==highlights== to clozes has no effect on it. The same goes for patterns with bolded text and the checkbox Convert **bolded text** to clozes and for {{text in curly brackets}} and the checkbox Convert {{curly brackets}} to clozes.

A possible solution is to clarify that these checkboxes refer specifically to the default patterns included with the plugin.

To Reproduce

  1. In Obsidian, go to Settings > Spaced Repetition > Flashcards Tab > Flashcard Separator;
  2. Under "Cloze Patterns", add ==answer==[\[^123\]][^\[hint\]];
  3. Ensure that the Convert ==highlights== to clozes checkbox is unchecked (check and uncheck it if necessary);
  4. Observe that ==[123;;]answer[;;hint]== disappears from the "Cloze Patterns" options, but ==answer==[\[^123\]][^\[hint\]] remains.

Expected behavior

As it currently stands, the user may become confused by expecting (or even fearing) that all of their "highlight" patterns will be removed when they uncheck the box. To avoid increasing the complexity of the checkbox logic and prevent accidental pattern removals, my proposal is simply to add a description to the checkboxes indicating which pattern they add/remove when checked/unchecked.

Screenshots

With the Convert ==highlights== to clozes checkbox checked:
image

We add the pattern ==answer==[\[^123\]][^\[hint\]]:
image

We then uncheck the Convert ==highlights== to clozes checkbox. Note that the pattern ==answer==[\[^123\]][^\[hint\]] remains, which might be confusing for the user:
image

OS of your device

Win10

Obsidian version

v1.7.4

Plugin version

1.13.2

Installer version

No response

Additional context

No response

Config file

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant