tth05 / obsidian-completr

Auto-completion plugin for the obsidian editor.
MIT License
291 stars 18 forks source link

Use the same capitalization that the user typed #69

Closed mocsa closed 6 months ago

mocsa commented 1 year ago

I have two related problems with capitalization:

  1. It often happens to me that the same word appears twice in the pop-up list. One has the first letter capitalized and the other doesn't. I guess, because I've already used that word at the beginning of a sentence and also within a sentence. It is not very user-friendly, but I can work around it by selecting the version that I want.

  2. A bigger problem is when I write a word non-capitalized, but the pop-up list contains the word in capitalized form. In this case I cannot accept the pop-up, because that would capitalize what I typed. So I have to type the full word, which makes Completr useless in this case.

My suggestions:

  1. In the first case, Completr could show only that version of the word which matches the user's capitalization.

  2. In the second case, when Completr finds a capitalized word in its cache but detects that the user is typing that word non-capitalized then it should respect the user's capitalization and insert the word in non-capitalized form.

mocsa commented 6 months ago

It seems that if in Settings I set the Word insertion mode to Ignore-Case & Append it solves both problems.