Skip to content

feat(keybindings): expand keyboard shortcut coverage for git, copy-tree, and agents#3082

Merged
gregpriday merged 2 commits intodevelopfrom
feature/issue-2896-expand-keyboard-shortcut
Mar 13, 2026
Merged

feat(keybindings): expand keyboard shortcut coverage for git, copy-tree, and agents#3082
gregpriday merged 2 commits intodevelopfrom
feature/issue-2896-expand-keyboard-shortcut

Conversation

@gregpriday
Copy link
Collaborator

Summary

  • Adds keyboard shortcuts for git write operations (Cmd+K Cmd+A stage all, Cmd+K Cmd+C commit, Cmd+K Cmd+P push) using the established chord prefix pattern
  • Promotes copy-tree from a worktree-list-scoped c binding to a global Cmd+Shift+C shortcut for quick context generation
  • Assigns default bindings for Codex (Cmd+Alt+X) and OpenCode (Cmd+Alt+O) agent launchers, following the Cmd+Alt+<letter> pattern used by Claude and Gemini

Resolves #2896

Changes

  • shared/types/keymap.ts — Added git.commit, git.push, and git.stageAll to the KeyAction union and KEY_ACTION_VALUES set
  • src/services/KeybindingService.ts — Registered new default keybindings for git operations, updated copy-tree to global scope, and gave Codex/OpenCode actual default combos instead of empty strings
  • src/services/actions/definitions/gitActions.ts — Made cwd args optional on git.stageAll, git.commit, and git.push actions so they can resolve from ctx.activeWorktreePath when dispatched via keyboard shortcut (no explicit args)

Testing

  • Typecheck passes clean (tsc --noEmit)
  • Lint and format pass with zero errors (npm run fix)
  • No conflicts with existing DEFAULT_KEYBINDINGS entries (verified Cmd+K Cmd+A/C/P, Cmd+Shift+C, Cmd+Alt+X, Cmd+Alt+O are all unoccupied)

…ee, and agents

- Add git.commit, git.push, git.stageAll to KeyAction type and KEY_ACTION_VALUES
- Add Cmd+K chord shortcuts: Cmd+K Cmd+A (stage all), Cmd+K Cmd+C (commit), Cmd+K Cmd+P (push)
- Promote worktree.copyTree from worktreeList-scoped 'c' to global Cmd+Shift+C
- Bind agent.codex to Cmd+Alt+X and agent.opencode to Cmd+Alt+O
…patch

- git.stageAll: cwd defaults to active worktree path via ActionContext
- git.commit: cwd defaults to active worktree, message remains required
- git.push: cwd defaults to active worktree path via ActionContext
@gregpriday gregpriday merged commit faad8eb into develop Mar 13, 2026
8 checks passed
@gregpriday gregpriday deleted the feature/issue-2896-expand-keyboard-shortcut branch March 13, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expand keyboard shortcut coverage for git, copy-tree, and agent operations

1 participant