From 6686c8ee4ca2ec1d42b64935d069cefca88d65ea Mon Sep 17 00:00:00 2001 From: Jacob Richman Date: Thu, 9 Apr 2026 09:23:04 -0700 Subject: [PATCH] Support ctrl+shift+g (#25035) --- docs/reference/keyboard-shortcuts.md | 2 +- packages/cli/src/ui/key/keyBindings.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/reference/keyboard-shortcuts.md b/docs/reference/keyboard-shortcuts.md index 4ef61ac003..4c2d677513 100644 --- a/docs/reference/keyboard-shortcuts.md +++ b/docs/reference/keyboard-shortcuts.md @@ -91,7 +91,7 @@ available combinations. | `input.submit` | Submit the current prompt. | `Enter` | | `input.queueMessage` | Queue the current prompt to be processed after the current task finishes. | `Tab` | | `input.newline` | Insert a newline without submitting. | `Ctrl+Enter`
`Cmd/Win+Enter`
`Alt+Enter`
`Shift+Enter`
`Ctrl+J` | -| `input.openExternalEditor` | Open the current prompt or the plan in an external editor. | `Ctrl+G` | +| `input.openExternalEditor` | Open the current prompt or the plan in an external editor. | `Ctrl+G`
`Ctrl+Shift+G` | | `input.deprecatedOpenExternalEditor` | Deprecated command to open external editor. | `Ctrl+X` | | `input.paste` | Paste from the clipboard. | `Ctrl+V`
`Cmd/Win+V`
`Alt+V` | diff --git a/packages/cli/src/ui/key/keyBindings.ts b/packages/cli/src/ui/key/keyBindings.ts index 0079d743d5..e7f03765d0 100644 --- a/packages/cli/src/ui/key/keyBindings.ts +++ b/packages/cli/src/ui/key/keyBindings.ts @@ -376,7 +376,10 @@ export const defaultKeyBindingConfig: KeyBindingConfig = new Map([ new KeyBinding('ctrl+j'), ], ], - [Command.OPEN_EXTERNAL_EDITOR, [new KeyBinding('ctrl+g')]], + [ + Command.OPEN_EXTERNAL_EDITOR, + [new KeyBinding('ctrl+g'), new KeyBinding('ctrl+shift+g')], + ], [Command.DEPRECATED_OPEN_EXTERNAL_EDITOR, [new KeyBinding('ctrl+x')]], [ Command.PASTE_CLIPBOARD,