You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Make Cmd/Ctrl+number navigate only my explicitly-opened (pinned) workspaces, with a visible ⌘N badge #7198
I work across many projects but on any given stretch I only care about a handful of workspaces I've explicitly opened/pinned. I want to hop between those with Cmd+# (Cmd/Ctrl + a number) and nothing else. Today the shortcut doesn't support that workflow:
It's project/workspace-index based, not my working set.Cmd+# targets the Nth visible workspace including projects I never opened — so it can land on, and even spin up a brand-new session in, a project that had no session at all. I don't want an empty project to be reachable by Cmd+1.
It doesn't map to the pinned cards. Pinned ("고정됨" / Pinned) workspaces are the natural "these are the ones I chose," but Cmd+# doesn't map to the pinned set/order.
The number is invisible. Cards show no ⌘1 / Ctrl+1 badge, so there's no way to know which digit goes where — it just feels like it lands somewhere unexpected.
Proposed solution
Scope Cmd+# to my explicitly-opened / pinned workspaces — the digit selects the Nth workspace in the pinned (or explicitly-opened) set, in the order shown. It should not target projects I never opened, and should not create a new session on an empty project.
Show the index on the card — render a small ⌘1 / Ctrl+1 badge on each numbered card so the mapping is visible and learnable.
Sort by the ⌘N order — an option to order the cards by their assigned ⌘N number so the visual order and the shortcut order always match.
Keep the numbering stable as I pin/unpin/reorder (renumber to the visible order).
Follow Orca's cross-platform convention: ⌘ on macOS, Ctrl+ on Linux/Windows.
Alternatives or additional context
Today Mod+1–Mod+9 (workspace.selectByIndex) selects a workspace by visible index, and a separate Ctrl+1–Ctrl+9 (tab.selectByIndex, macOS) selects a tab — the two are easy to confuse. There is no literal Cmd+#/hash binding.
Strong support for the core problem: pinned workspaces are the deliberate working set, yet the most prominent cards currently do not own the earliest workspace.selectByIndex digits. That makes Cmd/Ctrl+1–9 disagree with the sidebar users can see.
I would slightly narrow the proposed rule to preserve the spatial model established by #9497 / #10693: number each unique workspace by its first visible card, top to bottom. Since the Pinned section is first, pinned workspaces naturally take the earliest digits; if showPinnedWorktreesInGroups also renders a natural-group copy, that duplicate gets no second number. Remaining visible non-pinned cards may then receive the unused digits. This avoids a separate pinned-only shortcut mode while ensuring no card above workspace 1 is mysteriously unnumbered.
The badge work in #16083 is a good companion: it makes the effective mapping visible while the configured modifier is held. Badge rendering and activation should consume the exact same deduplicated rendered-row target list.
Concrete invariant: first visible occurrence wins; one workspace identity gets at most one digit; hidden/collapsed rows consume none; sidebar open/closed does not renumber.
Activity
luw2007 commentedon Sep 8, 2026
Strong support for the core problem: pinned workspaces are the deliberate working set, yet the most prominent cards currently do not own the earliest
workspace.selectByIndexdigits. That makesCmd/Ctrl+1–9disagree with the sidebar users can see.I would slightly narrow the proposed rule to preserve the spatial model established by #9497 / #10693: number each unique workspace by its first visible card, top to bottom. Since the Pinned section is first, pinned workspaces naturally take the earliest digits; if
showPinnedWorktreesInGroupsalso renders a natural-group copy, that duplicate gets no second number. Remaining visible non-pinned cards may then receive the unused digits. This avoids a separate pinned-only shortcut mode while ensuring no card above workspace 1 is mysteriously unnumbered.The badge work in #16083 is a good companion: it makes the effective mapping visible while the configured modifier is held. Badge rendering and activation should consume the exact same deduplicated rendered-row target list.
Concrete invariant: first visible occurrence wins; one workspace identity gets at most one digit; hidden/collapsed rows consume none; sidebar open/closed does not renumber.