Skip to content

Improve Command Palette search experience for word permutations #99685

@guywaldman

Description

@guywaldman

When searching with the Command Palette, right now you can use fuzzy search which is great.
Searching for "pop stash" or similar will bring up Git: Pop Stash... from the native Git extension.
Searching for "stash pop" however, will not.

I frequently search for "stash pop" instead of "pop stash" and it doesn't match since it expects the word in order. That is just a contrived example, I am sure that there are better ones.

Anyway, not sure whether this is a good idea just in my eyes, but in some cases I think it would be useful if the words could be out of order.
This could be implemented using keywords (for secondary search in case there are no matches) or implementing the out of order functionality. If performance is an issue, you could opt for this search heuristic lazily in cases where there are no results without it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionalityquick-pickQuick-pick widget issues

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions