Change debug drawer keybinding to F12 (#12171)

This commit is contained in:
Tommaso Sciortino
2025-10-28 12:10:40 -07:00
committed by GitHub
parent 39eb6ed9cc
commit ab1f195508
6 changed files with 8 additions and 9 deletions

View File

@@ -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+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+D` | Exit the application if the input is empty. Press twice to confirm. |
| `Ctrl+L` | Clear the screen. | | `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+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+T` | Toggle the display of the todo list. |
| `Ctrl+Y` | Toggle auto-approval (YOLO mode) for all tool calls. | | `Ctrl+Y` | Toggle auto-approval (YOLO mode) for all tool calls. |
| `F12` | Toggle the display of the debug console. |
## Input Prompt ## Input Prompt

View File

@@ -156,7 +156,7 @@ export const defaultKeyBindings: KeyBindingConfig = {
[Command.PASTE_CLIPBOARD_IMAGE]: [{ key: 'v', ctrl: true }], [Command.PASTE_CLIPBOARD_IMAGE]: [{ key: 'v', ctrl: true }],
// App level bindings // 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.SHOW_FULL_TODOS]: [{ key: 't', ctrl: true }],
[Command.TOGGLE_IDE_CONTEXT_DETAIL]: [{ key: 'g', ctrl: true }], [Command.TOGGLE_IDE_CONTEXT_DETAIL]: [{ key: 'g', ctrl: true }],
[Command.TOGGLE_MARKDOWN]: [{ key: 'm', command: true }], [Command.TOGGLE_MARKDOWN]: [{ key: 'm', command: true }],

View File

@@ -27,7 +27,7 @@ export const ConsoleSummaryDisplay: React.FC<ConsoleSummaryDisplayProps> = ({
{errorCount > 0 && ( {errorCount > 0 && (
<Text color={theme.status.error}> <Text color={theme.status.error}>
{errorIcon} {errorCount} error{errorCount > 1 ? 's' : ''}{' '} {errorIcon} {errorCount} error{errorCount > 1 ? 's' : ''}{' '}
<Text color={theme.text.secondary}>(ctrl+o for details)</Text> <Text color={theme.text.secondary}>(F12 for details)</Text>
</Text> </Text>
)} )}
</Box> </Box>

View File

@@ -37,8 +37,7 @@ export const DetailedMessagesDisplay: React.FC<
> >
<Box marginBottom={1}> <Box marginBottom={1}>
<Text bold color={theme.text.primary}> <Text bold color={theme.text.primary}>
Debug Console{' '} Debug Console <Text color={theme.text.secondary}>(F12 to close)</Text>
<Text color={theme.text.secondary}>(ctrl+o to close)</Text>
</Text> </Text>
</Box> </Box>
<MaxSizedBox maxHeight={maxHeight} maxWidth={width - borderAndPadding}> <MaxSizedBox maxHeight={maxHeight} maxWidth={width - borderAndPadding}>

View File

@@ -209,7 +209,7 @@ export const INFORMATIVE_TIPS = [
'Cancel a request with Ctrl+C, or press twice to exit...', 'Cancel a request with Ctrl+C, or press twice to exit...',
'Exit the app with Ctrl+D on an empty line...', 'Exit the app with Ctrl+D on an empty line...',
'Clear your screen at any time with Ctrl+L...', '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...', 'See full, untruncated responses with Ctrl+S...',
'Toggle auto-approval (YOLO mode) for all tools with Ctrl+Y...', 'Toggle auto-approval (YOLO mode) for all tools with Ctrl+Y...',
'Toggle shell mode by typing ! in an empty prompt...', 'Toggle shell mode by typing ! in an empty prompt...',

View File

@@ -50,7 +50,7 @@ describe('keyMatchers', () => {
[Command.OPEN_EXTERNAL_EDITOR]: (key: Key) => [Command.OPEN_EXTERNAL_EDITOR]: (key: Key) =>
key.ctrl && (key.name === 'x' || key.sequence === '\x18'), key.ctrl && (key.name === 'x' || key.sequence === '\x18'),
[Command.PASTE_CLIPBOARD_IMAGE]: (key: Key) => key.ctrl && key.name === 'v', [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.SHOW_FULL_TODOS]: (key: Key) => key.ctrl && key.name === 't',
[Command.TOGGLE_IDE_CONTEXT_DETAIL]: (key: Key) => [Command.TOGGLE_IDE_CONTEXT_DETAIL]: (key: Key) =>
key.ctrl && key.name === 'g', key.ctrl && key.name === 'g',
@@ -212,8 +212,8 @@ describe('keyMatchers', () => {
// App level bindings // App level bindings
{ {
command: Command.SHOW_ERROR_DETAILS, command: Command.SHOW_ERROR_DETAILS,
positive: [createKey('o', { ctrl: true })], positive: [createKey('f12')],
negative: [createKey('o'), createKey('e', { ctrl: true })], negative: [createKey('o', { ctrl: true }), createKey('f11')],
}, },
{ {
command: Command.SHOW_FULL_TODOS, command: Command.SHOW_FULL_TODOS,