Skip to content

Comments

Feat: fuzzy matching flag -z#432

Merged
Cloudef merged 1 commit intoCloudef:masterfrom
wintermute-cell:master
Aug 21, 2025
Merged

Feat: fuzzy matching flag -z#432
Cloudef merged 1 commit intoCloudef:masterfrom
wintermute-cell:master

Conversation

@wintermute-cell
Copy link
Contributor

Adds the option to use fuzzy matching when filtering menu items, along with the necessary flag and usage info.

Port of / strongly inspired by: https://tools.suckless.org/dmenu/patches/fuzzymatch/dmenu-fuzzymatch-4.6.diff

Would close #367

Adds the option to use fuzzy matching when filtering menu items.
Port of
https://tools.suckless.org/dmenu/patches/fuzzymatch/dmenu-fuzzymatch-4.6.diff
@m0tholith
Copy link

Bumping this, totally works and no issues

@bitkeen
Copy link

bitkeen commented Aug 21, 2025

@Cloudef could you review this please?

@Cloudef
Copy link
Owner

Cloudef commented Aug 21, 2025

Sorry for taking so long. It looks good to me.

@Cloudef Cloudef merged commit fafc8eb into Cloudef:master Aug 21, 2025
@wintermute-cell
Copy link
Contributor Author

thank you!

@Cloudef
Copy link
Owner

Cloudef commented Aug 29, 2025

Hello, I reverted these changes because static analysis found bugs in the code. The CI probably did not find those because it was running older version of the compiler at the time of PR. Also, I think this feature should be implemented as separate function rather than in the default filter_dmenu_fun as dmenu has mechanism for selectable filters here https://github.com/Cloudef/bemenu/blob/master/lib/menu.c#L44-L47. If you send a revised PR, I'll review it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature request] Fuzzy find option

4 participants