atom/command-palette

[Feature request] Improve fuzzy searching

Closed this issue · 3 comments

Currently the search functionality only shows command that matches the order of the characters in the search string. This means that you need to remember the order of the words of the command to search for it.

Example:
I want to run the command Theme Switch: Next
If I start writing Theme Ne it will show up, but if I start writing Next Th it does not.

To me it would make more sense that the search would be more fuzzy in this case, and not filter out commands based on order of characters.

@andreascmj can you confirm that the "Use Alternate Scoring" in Command Palette settings is checked?

Yes, I see no difference having it checked or unchecked.

To clarify, I would like the Theme Switch: Next command to show up in both these cases.

image

image

rsese commented

Thanks for the suggestion @andreascmj 👍 I chatted with another maintainer and while we think alternative fuzzy search functionality would be useful in general, it's not something the team would prioritize at the moment since we depend on fuzz-aldrin and fuzz-aldrin-plus for results scoring. So we'll close for now, but we'll definitely keep in mind that different search behavior is something that folks would find useful.