Skip to content

Fix searching words in brackets in the command palette#70868

Merged
bpasero merged 1 commit intomasterfrom
roblou/fixCommandPaletteBrackets
Mar 21, 2019
Merged

Fix searching words in brackets in the command palette#70868
bpasero merged 1 commit intomasterfrom
roblou/fixCommandPaletteBrackets

Conversation

@roblourens
Copy link
Member

@roblourens roblourens commented Mar 21, 2019

This modifies matchesWords to also split words on punctuation marks, using the default set of wordSeparators from the editor.

As is, this will affect local settings search and keybindings search too but that seems fine with me.

This could change the results that some people get for queries that they have in their muscle memory, and we don't really want to break that, but I think the benefit is large and the number of queries that it would affect is not huge. But, we need Insiders feedback and would not ship this in March.

image

Will add tests if we want to go this route.

Fixes #27636

@roblourens roblourens self-assigned this Mar 21, 2019
@roblourens roblourens requested a review from bpasero March 21, 2019 00:38
@roblourens roblourens added this to the April 2019 milestone Mar 21, 2019
@bpasero bpasero merged commit 9d64a3b into master Mar 21, 2019
@bpasero bpasero modified the milestones: April 2019, March 2019 Mar 21, 2019
@bpasero
Copy link
Member

bpasero commented Mar 21, 2019

I think this is awesome enough that we can have it now. The reason I am less worried is that we still have the list of most recently commands that shows up to the top of the list always. So even if there is a new command that matches now and was never used it would still be sorted below the one that was previously used.

Thanks!

@bpasero bpasero deleted the roblou/fixCommandPaletteBrackets branch March 21, 2019 06:05
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Quick commands fuzzy search doesn't work for text in brackets

2 participants