Skip to content

Commit 55ead36

Browse files
authored
🤖 fix: include workspace titles in quick switch keywords (#1144)
Workspace quick switch (Ctrl+Shift+P) now searches against workspace titles in addition to names, project names, and paths. This makes it easier to find workspaces when you remember what you were working on (the title) but not the branch name. --- _Generated with `mux` • Model: `anthropic:claude-opus-4-5` • Thinking: `medium`_
1 parent be889de commit 55ead36

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

src/browser/utils/commands/sources.ts

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ export function buildCoreSources(p: BuildSourcesParams): Array<() => CommandActi
117117
title: `${isCurrent ? "• " : ""}Switch to ${meta.name}`,
118118
subtitle: `${meta.projectName}${isStreaming ? " • streaming" : ""}`,
119119
section: section.workspaces,
120-
keywords: [meta.name, meta.projectName, meta.namedWorkspacePath],
120+
keywords: [meta.name, meta.projectName, meta.namedWorkspacePath, meta.title].filter(
121+
(k): k is string => !!k
122+
),
121123
run: () =>
122124
p.onSelectWorkspace({
123125
projectPath: meta.projectPath,
@@ -200,7 +202,13 @@ export function buildCoreSources(p: BuildSourcesParams): Array<() => CommandActi
200202
return {
201203
id: meta.id,
202204
label,
203-
keywords: [meta.name, meta.projectName, meta.namedWorkspacePath, meta.id],
205+
keywords: [
206+
meta.name,
207+
meta.projectName,
208+
meta.namedWorkspacePath,
209+
meta.id,
210+
meta.title,
211+
].filter((k): k is string => !!k),
204212
};
205213
}),
206214
},
@@ -230,7 +238,13 @@ export function buildCoreSources(p: BuildSourcesParams): Array<() => CommandActi
230238
return {
231239
id: meta.id,
232240
label,
233-
keywords: [meta.name, meta.projectName, meta.namedWorkspacePath, meta.id],
241+
keywords: [
242+
meta.name,
243+
meta.projectName,
244+
meta.namedWorkspacePath,
245+
meta.id,
246+
meta.title,
247+
].filter((k): k is string => !!k),
234248
};
235249
}),
236250
},
@@ -272,7 +286,13 @@ export function buildCoreSources(p: BuildSourcesParams): Array<() => CommandActi
272286
return {
273287
id: meta.id,
274288
label,
275-
keywords: [meta.name, meta.projectName, meta.namedWorkspacePath, meta.id],
289+
keywords: [
290+
meta.name,
291+
meta.projectName,
292+
meta.namedWorkspacePath,
293+
meta.id,
294+
meta.title,
295+
].filter((k): k is string => !!k),
276296
};
277297
}),
278298
},

0 commit comments

Comments
 (0)