DONE? Tweak how fuzzy search results are presented

Make a request or discuss new features.
Post Reply
User avatar
pjj
Posts: 2108
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

DONE? Tweak how fuzzy search results are presented

Post by pjj »

It would be really helpful if you could tweak the way fuzzy search works or, more specifically, how hits are sorted and what gets highlighted. Now it seems that the whole path is parsed character after character, which means that -- if you write down part of a filename and you have many files in your project -- the best hit is hidden down the hit list:
fuzzy-search.png
fuzzy-search.png (41.61 KiB) Viewed 2451 times
I am searching for "admin" here, but hits with this term in a filename are not presented at the top of the list, and I can't quickly see them, because letters in the pathname are highlighted instead. I guess the desired order would be this:
* whole hits in filenames
* whole hits in dirnames
* fuzzy hits in pathnames

so e.g.
D:\wwwJobs\uzaleznienia\subdomains\ankieta\admin\admin.php
D:\wwwJobs\uzaleznienia\subdomains\ankieta\admin\forms\edit-admin.php
D:\wwwJobs\uzaleznienia\subdomains\ankieta\admin\index.php
D:\wwwJobs\uzaleznienia\subdomains\ankieta\index.php
By the way, you may want to fix appropriate page in the on-line help: fussy → fuzzy 8)
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
User avatar
Rickard Johansson
Site Admin
Posts: 6575
Joined: 19 Jul 2006 14:29

Re: Tweak how fuzzy search results are presented

Post by Rickard Johansson »

Made a small tweak in next release (v14.73). Thanks!
Post Reply