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

Permanent highlights should ignore YAML + codeblocks #17

Closed chrisgrieser closed 2 years ago

chrisgrieser commented 2 years ago

I noticed that the plugin also applies permanent highlights to the yaml header and code blocks, where it leads to tons of highlights that are actually distracting rather than helpful, since words and punctuation have a different meaning there as opposed to "normal" markdown text, resulting in mostly unwanted highlights.

I'd simply suggest to have the plugin's permanent highlights ignore yaml and code blocks. Either permanently, or with a toggle (which should probably be on by default).

nothingislost commented 2 years ago

Implemented in 0.1.3

chrisgrieser commented 2 years ago

🥳

Cammagno commented 2 years ago

I support the request to add a toggle to re-enable it in code :)