summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/components/Help.tsx
diff options
context:
space:
mode:
authorDanny <[email protected]>2025-07-28 15:35:06 -0400
committerGitHub <[email protected]>2025-07-28 19:35:06 +0000
commitb6c2c64f9b7e1ac034a35ccf3f5e0d7845fcdd77 (patch)
treefbc57ff476e6d1d7d8a69150a0947a422099c166 /packages/cli/src/ui/components/Help.tsx
parentcfe3753d4c956ffcf13e227c0619069db672adbf (diff)
Adds docs outlining keyboard shortcuts for gemini-cli (#4727)
Co-authored-by: dannyzen <[email protected]> Co-authored-by: Jacob Richman <[email protected]>
Diffstat (limited to 'packages/cli/src/ui/components/Help.tsx')
-rw-r--r--packages/cli/src/ui/components/Help.tsx43
1 files changed, 31 insertions, 12 deletions
diff --git a/packages/cli/src/ui/components/Help.tsx b/packages/cli/src/ui/components/Help.tsx
index ecad9b5e..d9f7b4a8 100644
--- a/packages/cli/src/ui/components/Help.tsx
+++ b/packages/cli/src/ui/components/Help.tsx
@@ -103,9 +103,15 @@ export const Help: React.FC<Help> = ({ commands }) => (
</Text>
<Text color={Colors.Foreground}>
<Text bold color={Colors.AccentPurple}>
- Enter
+ Alt+Left/Right
</Text>{' '}
- - Send message
+ - Jump through words in the input
+ </Text>
+ <Text color={Colors.Foreground}>
+ <Text bold color={Colors.AccentPurple}>
+ Ctrl+C
+ </Text>{' '}
+ - Quit application
</Text>
<Text color={Colors.Foreground}>
<Text bold color={Colors.AccentPurple}>
@@ -117,27 +123,27 @@ export const Help: React.FC<Help> = ({ commands }) => (
</Text>
<Text color={Colors.Foreground}>
<Text bold color={Colors.AccentPurple}>
- Up/Down
+ Ctrl+L
</Text>{' '}
- - Cycle through your prompt history
+ - Clear the screen
</Text>
<Text color={Colors.Foreground}>
<Text bold color={Colors.AccentPurple}>
- Alt+Left/Right
+ {process.platform === 'darwin' ? 'Ctrl+X / Meta+Enter' : 'Ctrl+X'}
</Text>{' '}
- - Jump through words in the input
+ - Open input in external editor
</Text>
<Text color={Colors.Foreground}>
<Text bold color={Colors.AccentPurple}>
- Shift+Tab
+ Ctrl+Y
</Text>{' '}
- - Toggle auto-accepting edits
+ - Toggle YOLO mode
</Text>
<Text color={Colors.Foreground}>
<Text bold color={Colors.AccentPurple}>
- Ctrl+Y
+ Enter
</Text>{' '}
- - Toggle YOLO mode
+ - Send message
</Text>
<Text color={Colors.Foreground}>
<Text bold color={Colors.AccentPurple}>
@@ -147,9 +153,22 @@ export const Help: React.FC<Help> = ({ commands }) => (
</Text>
<Text color={Colors.Foreground}>
<Text bold color={Colors.AccentPurple}>
- Ctrl+C
+ Shift+Tab
</Text>{' '}
- - Quit application
+ - Toggle auto-accepting edits
+ </Text>
+ <Text color={Colors.Foreground}>
+ <Text bold color={Colors.AccentPurple}>
+ Up/Down
+ </Text>{' '}
+ - Cycle through your prompt history
+ </Text>
+ <Box height={1} />
+ <Text color={Colors.Foreground}>
+ For a full list of shortcuts, see{' '}
+ <Text bold color={Colors.AccentPurple}>
+ docs/keyboard-shortcuts.md
+ </Text>
</Text>
</Box>
);