Not sure if this is already supported or not, but is it possible to order the results for fuzzy search based on how much it matches the results?
For example when I search for files
in drun mode, I get Vim
at the top of results and Files
aka natilus
below that, when I think Files
is a better match and should be at the top
does this happen with run mode or only drun? Tbh this might not be an issue with fuzzy search exactly, drun searches a lot of metadata beyond the name that can lead to somewhat unintuitive results and this wouldn't be the first bug report caused by that behavior. I'll play with this and see if I can figure out why vim is at the top for you
This does not happen in run mode (Not in my testing atleast)
It's specifically in drun mode that it happens, It might be because the fuzzy match is picking something up in the meta data in the .desktop file for vim
Would it make sense to have the name give more weight in the matching compared to the other meta data?
I think it's matching this:
Comment=Edit text files
Yeah, that seems likely. The fields it considers are specifically the display name, the desktop file path, the executable path, the comment, the categories, the keywords, and the generic name. I'll see if I can figure out a way to preference the name without removing the other metadata. The problem with that is wofi and its modes were designed from the start to be entirely separate entities and with the current design the modes just provide wofi(which handles searching) with a single string to search.