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
50.51k stars 3.13k 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 2 months 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.