Repository navigation
Description
Problem or use case
Moving between projects (repos / project groups in the sidebar) today only works through the Cmd+J jump palette, which is search-driven — open it, type the project name, select. There is no direct keyboard shortcut to cycle to the next/previous project or jump to a project by index. Relevant prior art in the codebase:
worktree.navigateUp/worktree.navigateDown(Cmd+Shift+↑/↓) navigate worktrees, not projects.workspace.selectByIndex(Cmd+1–9) selects worktrees by index, not projects.- Find projects and repo groups from Cmd+J #6193 (merged) added project / repo-group results to Cmd+J, but selecting one only reveals it in the sidebar and explicitly does not activate it via a dedicated hotkey.
- feat: add workspace tab navigation and terminal unread shortcuts #6135 (open) adds Cmd/Ctrl+Shift+←/→ for tab navigation within a workspace, not across projects.
For users juggling several projects throughout the day, search-then-select adds friction versus a single keystroke.
Proposed solution
Add remappable global keybindings to switch projects directly:
project.navigateNext/project.navigatePrevious— cycle to the next/previous project in sidebar order, activating its last-focused worktree (or revealing + focusing the project header).- Optional
project.selectByIndex— Cmd+number jump to the Nth project, mirroring the existingworkspace.selectByIndex, if a non-conflicting modifier set is available.
Follow existing conventions: platform-aware labels (⌘/⇧ on macOS, Ctrl+/Shift+ on Linux/Windows; CmdOrCtrl for menu accelerators), defined in the keybinding registry (src/shared/keybindings.ts) under the Global group so they are remappable in Settings → Shortcuts and discoverable in the Jump palette (#5767).
Alternatives or additional context
- Current workaround: Cmd+J → type project name → Enter.
- Related actions:
worktree.navigateUp/worktree.navigateDown,workspace.selectByIndex,tab.selectByIndex. - Related PRs: Find projects and repo groups from Cmd+J #6193 (merged), feat: add workspace tab navigation and terminal unread shortcuts #6135 (open), Make shortcuts discoverable from the Jump palette #5767 (open).
Activity
realitsyourman commentedon Jun 29, 2026
Happy to take a shot at implementing this. Before I open a PR — do maintainers have a preferred default binding?
The obvious modifier slots are already taken:
Cmd+1–9→workspace.selectByIndex(worktrees)Cmd+Shift+↑/↓→worktree.navigateUp/worktree.navigateDownCmd/Ctrl+Shift+←/→→ tab navigation (feat: add workspace tab navigation and terminal unread shortcuts #6135)Candidates for next/previous project (remappable, defaults TBD):
Cmd+Shift+[/], orCmd+Option+↑/↓. Alternatively, registerproject.navigateNext/project.navigatePrevious(+ optionalproject.selectByIndex) with no default so users bind their own.I'll match the existing keybinding registry (
src/shared/keybindings.ts) and the platform-label conventions either way. Let me know which you'd prefer for the default and I'll send a PR.realitsyourman commentedon Jun 29, 2026
@nwparker Please share your thoughts.
brennanb2025 commentedon Jul 1, 2026
Accidentally closed it, sorry about that! Just reopened it.
realitsyourman commentedon Jul 1, 2026
Thank you
feat: add keyboard shortcuts to switch between projects
mikeover commentedon Oct 19, 2026
What's the status of this?