Cloudef / bemenu

Dynamic menu library and client program inspired by dmenu
GNU General Public License v3.0
1.2k stars 94 forks source link

Matching not same as dmenu? #206

Open rieje opened 2 years ago

rieje commented 2 years ago

I'm finding search matching is not the same as dmenu (I don't know if it's supposed to be--aren't both doing fuzzy searching?). I have:

cat ~/.cache/bemenu-run-cmds.cache | /usr/bin/bemenu cat ~/.cache/bemenu-run-cmds.cache | /usr/bin/dmenu

It contains, among other lines, the following:

pc
pc /wd500
pc d
pc em

In the search prompt, I type: pc d. In bemenu, it matches pc /wd500 while in dmenu it matches pc d. I wanted to match the latter via fuzzy searching. If it's working as expected, how can I still get the matching priority of dmenu on bemenu?

Cloudef commented 2 years ago

This is valid issue, it seems we don't do the sorting after prefix matching same as dmenu.