From b6c2c64f9b7e1ac034a35ccf3f5e0d7845fcdd77 Mon Sep 17 00:00:00 2001 From: Danny <659908+Dannyzen@users.noreply.github.com> Date: Mon, 28 Jul 2025 15:35:06 -0400 Subject: Adds docs outlining keyboard shortcuts for gemini-cli (#4727) Co-authored-by: dannyzen Co-authored-by: Jacob Richman --- packages/cli/src/ui/components/Help.tsx | 43 ++++++++++++++++++++++++--------- 1 file changed, 31 insertions(+), 12 deletions(-) (limited to 'packages/cli/src/ui/components/Help.tsx') 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 = ({ commands }) => ( - Enter + Alt+Left/Right {' '} - - Send message + - Jump through words in the input + + + + Ctrl+C + {' '} + - Quit application @@ -117,27 +123,27 @@ export const Help: React.FC = ({ commands }) => ( - Up/Down + Ctrl+L {' '} - - Cycle through your prompt history + - Clear the screen - Alt+Left/Right + {process.platform === 'darwin' ? 'Ctrl+X / Meta+Enter' : 'Ctrl+X'} {' '} - - Jump through words in the input + - Open input in external editor - Shift+Tab + Ctrl+Y {' '} - - Toggle auto-accepting edits + - Toggle YOLO mode - Ctrl+Y + Enter {' '} - - Toggle YOLO mode + - Send message @@ -147,9 +153,22 @@ export const Help: React.FC = ({ commands }) => ( - Ctrl+C + Shift+Tab {' '} - - Quit application + - Toggle auto-accepting edits + + + + Up/Down + {' '} + - Cycle through your prompt history + + + + For a full list of shortcuts, see{' '} + + docs/keyboard-shortcuts.md + ); -- cgit v1.2.3