brisk-menu
brisk-menu copied to clipboard
[Feature Request] Improve search algorithm as we have it in Whisker Menu
Whisker Menu from Xubuntu has a better search algorithm. Example: I want to run LibreOffice Writer. I open the menu, type lw
, and get my LibreOffice Writer
in the results, because the words in it start with L
and W
. Searching for lw
in Brisk Menu doesn't return any result. So I'm asking to implement Whisker Menu search algorithm in Brisk Menu.
synapse (which was removed from ubuntu-mate-meta in 17.10/artful as I assume the updated brisk-menu is supposed to replace it) works this way well.
would be a nice feature. Also it would be really great if you could add possible to add own sets like gmrun. For example i have in my gmrun configurations thinks like: w: tcp (searching wikipedia) or php: phpinfo (search php.net). Configuration for this looks like:
URL_b = firefox 'http://bing.de/?q=%s' URL_css = firefox 'http://jigsaw.w3.org/css-validator/validator?uri=%s&profile=css3&usermedium=all&warning=1&vextwarning=&lang=de' URL_cisco=firefox 'http://tools.cisco.com/search/results/en/us/get#q=%s' URL_d = firefox 'https://duckduckgo.com/?q=%s' ...
Perhaps Levenshtein_distance will help here:
- https://en.wikipedia.org/wiki/Levenshtein_distance
Here's a few links for reference: https://github.com/Microsoft/vscode/issues/968 https://github.com/atom/fuzzaldrin
vscode does this kind of matching, and so does fuzzaldrin, which is a plugin for atom. It really is the most excellent way to match - "msm" would watch "MATE System Monitor" for example.