From ab902dd1b739ed6d8112d35f85aa0b3b6bd54cb8 Mon Sep 17 00:00:00 2001 From: jacob314 Date: Thu, 9 Apr 2026 08:44:55 -0700 Subject: [PATCH] Support ctrl+shift+g --- 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 4ef61ac0034..4c2d677513d 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 0079d743d58..e7f03765d0b 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,