nothingislost / obsidian-dynamic-highlights

An experimental Obsidian plugin that highlights all occurrences of the word under the cursor
MIT License
134 stars 7 forks source link

Add an option to let the user decide whether to mark text if it's inside of front matter or a code block #20

Open tyf2018 opened 2 years ago

tyf2018 commented 2 years ago

Is it possible to add an option to let the user decide whether to mark text if it's inside of front matter or a code block? Thanks!

nothingislost commented 2 years ago

Sure. Out of curiosity, can you let me know your use case for highlighting text in those blocks?

Would you want that option per highlighter? Or globally?

tyf2018 commented 2 years ago

can you let me know your use case for highlighting text in those blocks?

Usage scenario: In some notes, I will add multiple pieces of dataview code, and some lines are the same or similar, so I need to check which lines (or sentences) are the same or similar at a glance.

I mistakenly thought that the new version of the plugin, this function will be disabled in the code block, so I added this issuse.

At the moment, the new version of the plugin does not disable the functionality I need in the code block, so just ignore my issuse. thanks.

Best Regards.