38 ms·
"Search mode" is the default because, 80% of the time, you're right, it is faster to just type a few characters. However, in about another 10% of cases (in my e
by fouric 11y ago
"Search mode" is the default because, 80% of the time, you're right, it is faster to just type a few characters. However, in about another 10% of cases (in my experience, and up until this point I've been the sole user of this thing), there are filenames that differ by a few characters at the end (lightning-cd.lisp vs lightning-cd.py is a good example), and it would take much longer to type out the entire unique portion of the filename than it would to hit two characters, switch modes, and then select downward once or twice.
I am considering adding in a fuzzy searching engine. However, because Lightning's primary mode (search mode) works by selecting on uniquely identifying substrings of filenames (the ones at the beginning in particular), a fuzzy search might make it more difficult to get a particular file because the algorithm would grab other filenames that you didn't want. I'll give it a try and see how it works.
- StavrosK 11y agoAh, if it supports both, then great. You can try a fuzzy search and give it less weight, so it would prefer to match the beginnings of strings first. The good thing about fuzzy search is that "ligy" would match "lightning-cd.py", and "ligs" would match "lightning-cd.lisp".