Find-in-note is not totally case-insensitive

I have also noticed that when searching inside a note, the search is not totally case-insensitive.

Example:

Is this behavior expected? It makes searching difficult and error-prone.

Hi @David_Miguel ,

Regarding the find-in-note feature, it uses CodeMirror’s built-in search API.
So, I guess it’s a bug of CM or by design.
I’m planning to migrate CM to v6 in the future and let’s see how it behaves on it.
Thanks for letting me know!

1 Like

Thanks for the update.

Maybe an easy fix on your side if CM v6 has not fixed it is to convert the search query to lowercase behind the scenes. So if the user searches for “Test”, you send “test” to the search API.

1 Like

Nice trick!
But I think that when people type “test” they may expect the result contains “test”,“Test”,“TEST”,“TeSt”…
else when type “Test”, they really want the “Test” without others.

Else when type “Test”, they really want the “Test” without others.

I don’t think that is the industry standard, thus what I expect as a user.

If you look for “Test” in your browser, you get all the matches:

If you look for “Test” in your IDE, you get all the matches (unless you enable case-sensitive):

If you look for “Test” in your office suite, you get all the matches:

Do you have an example of an app where that logic is used?

Yep. u r right. :+1:

Yeah that will work!