diff --git a/docs/cli/keyboard-shortcuts.md b/docs/cli/keyboard-shortcuts.md index 2e7a86c022..b5ff0b8e00 100644 --- a/docs/cli/keyboard-shortcuts.md +++ b/docs/cli/keyboard-shortcuts.md @@ -10,10 +10,10 @@ This document lists the available keyboard shortcuts in the Gemini CLI. | `Ctrl+C` | Cancel the ongoing request and clear the input. Press twice to exit the application. | | `Ctrl+D` | Exit the application if the input is empty. Press twice to confirm. | | `Ctrl+L` | Clear the screen. | -| `Ctrl+O` | Toggle the display of the debug console. | | `Ctrl+S` | Allows long responses to print fully, disabling truncation. Use your terminal's scrollback to view the entire output. | | `Ctrl+T` | Toggle the display of the todo list. | | `Ctrl+Y` | Toggle auto-approval (YOLO mode) for all tool calls. | +| `F12` | Toggle the display of the debug console. | ## Input Prompt diff --git a/packages/cli/src/config/keyBindings.ts b/packages/cli/src/config/keyBindings.ts index 0c5d54146c..14e56b33a3 100644 --- a/packages/cli/src/config/keyBindings.ts +++ b/packages/cli/src/config/keyBindings.ts @@ -156,7 +156,7 @@ export const defaultKeyBindings: KeyBindingConfig = { [Command.PASTE_CLIPBOARD_IMAGE]: [{ key: 'v', ctrl: true }], // App level bindings - [Command.SHOW_ERROR_DETAILS]: [{ key: 'o', ctrl: true }], + [Command.SHOW_ERROR_DETAILS]: [{ key: 'f12' }], [Command.SHOW_FULL_TODOS]: [{ key: 't', ctrl: true }], [Command.TOGGLE_IDE_CONTEXT_DETAIL]: [{ key: 'g', ctrl: true }], [Command.TOGGLE_MARKDOWN]: [{ key: 'm', command: true }], diff --git a/packages/cli/src/ui/components/ConsoleSummaryDisplay.tsx b/packages/cli/src/ui/components/ConsoleSummaryDisplay.tsx index 2f2f8a2a75..9d19683e22 100644 --- a/packages/cli/src/ui/components/ConsoleSummaryDisplay.tsx +++ b/packages/cli/src/ui/components/ConsoleSummaryDisplay.tsx @@ -27,7 +27,7 @@ export const ConsoleSummaryDisplay: React.FC = ({ {errorCount > 0 && ( {errorIcon} {errorCount} error{errorCount > 1 ? 's' : ''}{' '} - (ctrl+o for details) + (F12 for details) )} diff --git a/packages/cli/src/ui/components/DetailedMessagesDisplay.tsx b/packages/cli/src/ui/components/DetailedMessagesDisplay.tsx index b31d088005..acc3f0622f 100644 --- a/packages/cli/src/ui/components/DetailedMessagesDisplay.tsx +++ b/packages/cli/src/ui/components/DetailedMessagesDisplay.tsx @@ -37,8 +37,7 @@ export const DetailedMessagesDisplay: React.FC< > - Debug Console{' '} - (ctrl+o to close) + Debug Console (F12 to close) diff --git a/packages/cli/src/ui/hooks/usePhraseCycler.ts b/packages/cli/src/ui/hooks/usePhraseCycler.ts index abc14f2d7d..33a0cb40e0 100644 --- a/packages/cli/src/ui/hooks/usePhraseCycler.ts +++ b/packages/cli/src/ui/hooks/usePhraseCycler.ts @@ -209,7 +209,7 @@ export const INFORMATIVE_TIPS = [ 'Cancel a request with Ctrl+C, or press twice to exit...', 'Exit the app with Ctrl+D on an empty line...', 'Clear your screen at any time with Ctrl+L...', - 'Toggle the debug console display with Ctrl+O...', + 'Toggle the debug console display with F12...', 'See full, untruncated responses with Ctrl+S...', 'Toggle auto-approval (YOLO mode) for all tools with Ctrl+Y...', 'Toggle shell mode by typing ! in an empty prompt...', diff --git a/packages/cli/src/ui/keyMatchers.test.ts b/packages/cli/src/ui/keyMatchers.test.ts index 46f492f090..37176288cf 100644 --- a/packages/cli/src/ui/keyMatchers.test.ts +++ b/packages/cli/src/ui/keyMatchers.test.ts @@ -50,7 +50,7 @@ describe('keyMatchers', () => { [Command.OPEN_EXTERNAL_EDITOR]: (key: Key) => key.ctrl && (key.name === 'x' || key.sequence === '\x18'), [Command.PASTE_CLIPBOARD_IMAGE]: (key: Key) => key.ctrl && key.name === 'v', - [Command.SHOW_ERROR_DETAILS]: (key: Key) => key.ctrl && key.name === 'o', + [Command.SHOW_ERROR_DETAILS]: (key: Key) => key.name === 'f12', [Command.SHOW_FULL_TODOS]: (key: Key) => key.ctrl && key.name === 't', [Command.TOGGLE_IDE_CONTEXT_DETAIL]: (key: Key) => key.ctrl && key.name === 'g', @@ -212,8 +212,8 @@ describe('keyMatchers', () => { // App level bindings { command: Command.SHOW_ERROR_DETAILS, - positive: [createKey('o', { ctrl: true })], - negative: [createKey('o'), createKey('e', { ctrl: true })], + positive: [createKey('f12')], + negative: [createKey('o', { ctrl: true }), createKey('f11')], }, { command: Command.SHOW_FULL_TODOS,