nothingislost / obsidian-dynamic-highlights

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

Understanding the radio buttons in Persistent Highlights #31

Open claremacrae opened 2 years ago

claremacrae commented 2 years ago

Apologies if I missed it in the docs, but can you please say that the radio buttons mean in "Persistent Highlights" against regex rules:

Perhaps tool tips/hover tips might help?

nothingislost commented 2 years ago

Agreed that this needs better documentation. For now, those toggles control how and where CSS classes are applied.

claremacrae commented 2 years ago

Thank you! I wouldn't have guessed that, but I can see how it's really useful.

stefanopagliari commented 2 years ago

@nothingislost, do you have any example of hour I can use the "parent" filter? I would like to put a border around tasks. I have been identifying tasks using ^- \[.\] .*$ but the border is applied to individual elements, not the entire line. If I switch from "matches" to "parent", the regex is not being picked up. I guess I am misunderstanding the functioning.

image