andreikop / enki

A text editor for programmers
http://enki-editor.org
GNU General Public License v2.0
161 stars 39 forks source link

FuzzyOpener tries to open the wrong (lowercased) file. #326

Closed vi closed 8 years ago

vi commented 8 years ago

I opened Enki in a simple Android project with RedScreenActivity.java file.

When I open Locator and type RSA, it correctly suggests src/main/java/org/vi_server/red_screen/RedScreenActivity.java and is able to open it.

But when I type rsa.java, it suggests src/main/java/org/vi_server/red_screen/redscreenactivity.java (note the lowercase) and shows [Errno 2] No such file or directory: when I try to open it.

Expected: showing the same entry as in the first case (with preserved capitalisation).

I want FuzzyOpener to still suggest RedScreenActivity.java for rsa.java, but with capitalisation preserved.

andreikop commented 8 years ago

Oops, was broken during performance optimization. Fixed, added some tests.