Repository navigation
Command Center: match a query typed without spaces against multi-word workspace titles #10753
rookedsysc
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
What I'm trying to do
Jump to a workspace from ⌘K by typing its title quickly, without thinking about where the spaces are.
How I do it today / where Paseo gets in the way
I have a workspace titled
old api 보안 개선. In ⌘K → Workspaces,oldapireturns No matches, and so doesolda. Onlyold apifinds it.Workspace and agent titles are free text written with spaces, unlike branch names.
perfsearchfindsperf/search-fzfbecause the subsequence match runs across/and-, butperfsearchdoes not findperf search fzf. The same intent gives different results depending on how the title happens to be separated.The cause is
scoreSubsequenceMatchinpackages/protocol/src/search/text-match.ts, which resets the query position at every whitespace character in the text. I understand this is deliberate (labdesshould not match "Label as Design" in a picker over a known list).What a better workflow could look like
Allow a single token to span consecutive words only when each piece starts at a word boundary (
oldapi→ old api), and rank such matches in the existingscatteredclass, after every match the current rules produce. Existing results and their order would not change. The cost would be one more linear pass, only for tokens that currently match nothing.If this is too loose for every picker, enabling it only for Command Center workspace and agent search would cover my case.
Paseo 0.17.4, macOS.
All reactions