mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-24 22:55:13 +00:00
Ctrl-O (#17617)
This commit is contained in:
@@ -94,20 +94,20 @@ available combinations.
|
|||||||
|
|
||||||
#### App Controls
|
#### App Controls
|
||||||
|
|
||||||
| Action | Keys |
|
| Action | Keys |
|
||||||
| ----------------------------------------------------------------------------------------------------- | ---------------- |
|
| ----------------------------------------------------------------------------------------------------- | -------------------------- |
|
||||||
| Toggle detailed error information. | `F12` |
|
| Toggle detailed error information. | `F12` |
|
||||||
| Toggle the full TODO list. | `Ctrl + T` |
|
| Toggle the full TODO list. | `Ctrl + T` |
|
||||||
| Show IDE context details. | `Ctrl + G` |
|
| Show IDE context details. | `Ctrl + G` |
|
||||||
| Toggle Markdown rendering. | `Alt + M` |
|
| Toggle Markdown rendering. | `Alt + M` |
|
||||||
| Toggle copy mode when in alternate buffer mode. | `Ctrl + S` |
|
| Toggle copy mode when in alternate buffer mode. | `Ctrl + S` |
|
||||||
| Toggle YOLO (auto-approval) mode for tool calls. | `Ctrl + Y` |
|
| Toggle YOLO (auto-approval) mode for tool calls. | `Ctrl + Y` |
|
||||||
| Cycle through approval modes: default (prompt), auto_edit (auto-approve edits), and plan (read-only). | `Shift + Tab` |
|
| Cycle through approval modes: default (prompt), auto_edit (auto-approve edits), and plan (read-only). | `Shift + Tab` |
|
||||||
| Expand a height-constrained response to show additional lines when not in alternate buffer mode. | `Ctrl + S` |
|
| Expand a height-constrained response to show additional lines when not in alternate buffer mode. | `Ctrl + O`<br />`Ctrl + S` |
|
||||||
| Focus the shell input from the gemini input. | `Tab (no Shift)` |
|
| Focus the shell input from the gemini input. | `Tab (no Shift)` |
|
||||||
| Focus the Gemini input from the shell input. | `Tab` |
|
| Focus the Gemini input from the shell input. | `Tab` |
|
||||||
| Clear the terminal screen and redraw the UI. | `Ctrl + L` |
|
| Clear the terminal screen and redraw the UI. | `Ctrl + L` |
|
||||||
| Restart the application. | `R` |
|
| Restart the application. | `R` |
|
||||||
|
|
||||||
<!-- KEYBINDINGS-AUTOGEN:END -->
|
<!-- KEYBINDINGS-AUTOGEN:END -->
|
||||||
|
|
||||||
|
|||||||
@@ -253,7 +253,10 @@ export const defaultKeyBindings: KeyBindingConfig = {
|
|||||||
[Command.TOGGLE_COPY_MODE]: [{ key: 's', ctrl: true }],
|
[Command.TOGGLE_COPY_MODE]: [{ key: 's', ctrl: true }],
|
||||||
[Command.TOGGLE_YOLO]: [{ key: 'y', ctrl: true }],
|
[Command.TOGGLE_YOLO]: [{ key: 'y', ctrl: true }],
|
||||||
[Command.CYCLE_APPROVAL_MODE]: [{ key: 'tab', shift: true }],
|
[Command.CYCLE_APPROVAL_MODE]: [{ key: 'tab', shift: true }],
|
||||||
[Command.SHOW_MORE_LINES]: [{ key: 's', ctrl: true }],
|
[Command.SHOW_MORE_LINES]: [
|
||||||
|
{ key: 'o', ctrl: true },
|
||||||
|
{ key: 's', ctrl: true },
|
||||||
|
],
|
||||||
[Command.FOCUS_SHELL_INPUT]: [{ key: 'tab', shift: false }],
|
[Command.FOCUS_SHELL_INPUT]: [{ key: 'tab', shift: false }],
|
||||||
[Command.UNFOCUS_SHELL_INPUT]: [{ key: 'tab' }],
|
[Command.UNFOCUS_SHELL_INPUT]: [{ key: 'tab' }],
|
||||||
[Command.CLEAR_SCREEN]: [{ key: 'l', ctrl: true }],
|
[Command.CLEAR_SCREEN]: [{ key: 'l', ctrl: true }],
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ describe('ShowMoreLines', () => {
|
|||||||
} as NonNullable<ReturnType<typeof useOverflowState>>);
|
} as NonNullable<ReturnType<typeof useOverflowState>>);
|
||||||
mockUseStreamingContext.mockReturnValue(streamingState);
|
mockUseStreamingContext.mockReturnValue(streamingState);
|
||||||
const { lastFrame } = render(<ShowMoreLines constrainHeight={true} />);
|
const { lastFrame } = render(<ShowMoreLines constrainHeight={true} />);
|
||||||
expect(lastFrame()).toContain('Press ctrl-s to show more lines');
|
expect(lastFrame()).toContain('Press ctrl-o to show more lines');
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ export const ShowMoreLines = ({ constrainHeight }: ShowMoreLinesProps) => {
|
|||||||
return (
|
return (
|
||||||
<Box>
|
<Box>
|
||||||
<Text color={theme.text.secondary} wrap="truncate">
|
<Text color={theme.text.secondary} wrap="truncate">
|
||||||
Press ctrl-s to show more lines
|
Press ctrl-o to show more lines
|
||||||
</Text>
|
</Text>
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ export const INFORMATIVE_TIPS = [
|
|||||||
'Clear your screen at any time with Ctrl+L…',
|
'Clear your screen at any time with Ctrl+L…',
|
||||||
'Toggle the debug console display with F12…',
|
'Toggle the debug console display with F12…',
|
||||||
'Toggle the todo list display with Ctrl+T…',
|
'Toggle the todo list display with Ctrl+T…',
|
||||||
'See full, untruncated responses with Ctrl+S…',
|
'See full, untruncated responses with Ctrl+O…',
|
||||||
'Toggle auto-approval (YOLO mode) for all tools with Ctrl+Y…',
|
'Toggle auto-approval (YOLO mode) for all tools with Ctrl+Y…',
|
||||||
'Cycle through approval modes (Default, Plan, Auto-Edit) with Shift+Tab…',
|
'Cycle through approval modes (Default, Plan, Auto-Edit) with Shift+Tab…',
|
||||||
'Toggle Markdown rendering (raw markdown mode) with Alt+M…',
|
'Toggle Markdown rendering (raw markdown mode) with Alt+M…',
|
||||||
|
|||||||
@@ -308,7 +308,10 @@ describe('keyMatchers', () => {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
command: Command.SHOW_MORE_LINES,
|
command: Command.SHOW_MORE_LINES,
|
||||||
positive: [createKey('s', { ctrl: true })],
|
positive: [
|
||||||
|
createKey('s', { ctrl: true }),
|
||||||
|
createKey('o', { ctrl: true }),
|
||||||
|
],
|
||||||
negative: [createKey('s'), createKey('l', { ctrl: true })],
|
negative: [createKey('s'), createKey('l', { ctrl: true })],
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user