zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
27.33k stars 1.92k forks source link

Spellchecker is overly sensitive #1102

Open jmiskovic opened 4 years ago

jmiskovic commented 4 years ago

When using names, abbreviations and domain-specific text, my notes lose readability. They become a mess of red underlines and black text. I still find much value in spellchecker, but it is not usable in such situations.

Adding words to dictionary is not always a solution. Consider something like "100ms" or "0x42", these will be marked as bad spelling.

Some proposals:

  1. Show spell checking mistakes only on line the user is currently editing. This enables user to use spell checker efficiently while writing, and at the same time doesn't hurt readability of notes when just examining them.
  2. Don't spell-check words that contain numbers, or are all in capital letters.
  3. Add a keyboard shortcut for quickly toggling the spell checker.
zadam commented 4 years ago

Hi, Trilium uses builtin electron/blink spell checking which allows only minimal level of configuration so it's not actually possible to fix 1) and 2).

I think 3) should be doable ...

jmiskovic commented 4 years ago

I noticed that in current version the spellchecker enable/disable works only after restarting the program, so it wouldn't be enough to assign a keyboard shortcut to a program setting. Still, it's a good start and restart is much faster than navigating program settings with mouse.