DearVikki / obsidian-cloze-plugin

A plugin for Obsidian which enables converting highlights, underlines, bolded texts, or any selected texts into clozes.
Mozilla Public License 2.0
65 stars 4 forks source link

option to keep clozes revealed in live preview mode #26

Closed fredjoe7 closed 6 months ago

fredjoe7 commented 6 months ago

I like reviewing in reading mode and when i am in live preview mode, i like all clozes to be revealed by default.

adding an option in the plugin settings to toggle having the clozes revealed in live preview mode for all notes will be nice.

thank you.

fredjoe7 commented 6 months ago

sorry it is actually only working in reading mode.. first time when i tried it was hiding the answer in live preview mode.. now it seems to work normally

fredjoe7 commented 6 months ago

ok the issue is real

Inside a table, the cloze is hidden both in live preview and reading mode.

Screenshot 2024-04-25 220136

i tried in default theme also ... its the same also tried with all other plugins turned off , no luck

thank you

DearVikki commented 6 months ago

Hi there! @fredjoe7 There's a ribbon fish icon on the sidebar. Try clicking it to see if it helps. It will toggle between the visible and invisible cloze states, and this state will be set as the default cloze state under the current editing mode.

image

fredjoe7 commented 6 months ago

Thank you.

It does make the clozes visible but when i close the note and reopen it. I still find them invisible in live preview mode.

fredjoe7 commented 6 months ago

demo

as i change the notes, the default state is not executed properly.

DearVikki commented 6 months ago

That seems weird.. 🤔 May I ask what appearance theme you're using (so that you can change the file by selecting from the upper bar)? And would you mind emailing this markdown file to me at wanqicn@qq.com? Thanks.

fredjoe7 commented 6 months ago

I'm using magicuser theme. The weird color of the display is because of blue light filters.. Change file by selecting from the upper bar is enabled by Quick Explorer plugin available in community plugins. I'll mail you the file.

Thank you.

DearVikki commented 6 months ago

Hi, I'm really thankful for your support! It turns out that there is a hidden bug. This only happens under a note with embedded tables, where Obsidian will call a markdown-process function even under editing mode. Anyway, I've added a workaround. Please upgrade to the latest version (v0.0.16) to see if it works for you.

By the way, the popup title for hints has also been added. Please give it a try! Thank you.

fredjoe7 commented 6 months ago

I have tried it out, works well ...

Thank you for this useful plugin and great support.