Open c5n8 opened 2 years ago
Along with #147 as well it's clear the sort function could use some work
Your title mentions how the matches work, but you're actually issue is with the sorting?
I don't think this is simply a sort issue. There are 3 categories at play here which have a static order.
If you'd want to be able to sort on individual items the design would need to be changed and then your issue lies there?
@peteruithoven I think the OPs problem is that the first match is not really a match, although it technically is a valid fuzzy match. Perhaps when there are better matches in later categories, the entire category with such a "bad" match could be skipped, instead of messing with sorting.
Question is if there is any established way to rank fuzzy matches as "better" or "worse", or if you'd have to roll your own rules. One (naive) approach could be to consider matches of individual letters (as in the screenshot above) as worse than matches where several consequent letters appear together (e.g. "shut").
Fuzzy search mostly works well, but I always considered these kind of matches a problem (years before I've seen Slingshot). It would be very cool if you managed to de-prioritize such matches.
What Happened?
Steps to Reproduce
See screenshot.
Expected Behavior
Shut down should be the first match.
OS Version
6.x (Odin)
Software Version
Latest release (I have run all updates)
Log Output
No response
Hardware Info
No response