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

FR: Settings for ignoring words #4

Closed chrisgrieser closed 2 years ago

chrisgrieser commented 2 years ago

highlighting words such as the is adding a bit of unnecessary noise, so I'd suggest adding an option to configure words to ignore. (Could also be solved via CSS, when the css class .current-word gets a data-attribute).

I'd suggest adding a stop list of English words as default words to ignore, e.g. https://gist.github.com/sebleier/554280

nothingislost commented 2 years ago

Addressed in 0.0.5

chrisgrieser commented 2 years ago

works great! two things that could be make it a bit better though:

  1. make the setting for ignored words a textarea and not an input element, since the latter is really hard to edit with so many words in it
  2. the ignored words list should probably be case insensitive to catch words like "the" being at capitalized at the beginning of a sentence. Right now a "The" still triggers the plugin
Screenshot 2021-12-29 23 51 55
nothingislost commented 2 years ago

Addressed in 0.0.6

chrisgrieser commented 2 years ago

works fine :)