zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
49.59k stars 3.04k forks source link

command palette filter should ignore word order #8594

Open hferreiro opened 8 months ago

hferreiro commented 8 months ago

Check for existing issues

Describe the feature

When using spaces to separate words, the order of the words shouldn't affect the search results. As an example, typing "recent branches" should show the command "branches: open recent".

If applicable, add mockups / screenshots to help present your vision of the feature

No response

g0t4 commented 1 month ago

Here's a visual example:

Right order:

image

Wrong order:

image

And here is vscode for comparison:

Right order:

image

Wrong order:

image

Note - vscode omits highlighting matches when words are reversed, not a big deal but that is somewhat annoying.