From 6900253cb8145a979c5af03440c32c394c137bff Mon Sep 17 00:00:00 2001 From: Ali Abbas Date: Sat, 17 Jan 2026 18:54:36 +0500 Subject: [PATCH] feat(cli): replace relative keyboard shortcuts link with web URL (#16479) --- packages/cli/src/ui/components/Help.tsx | 3 ++- packages/cli/src/ui/constants.ts | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/ui/components/Help.tsx b/packages/cli/src/ui/components/Help.tsx index c32726475c..8afee226a0 100644 --- a/packages/cli/src/ui/components/Help.tsx +++ b/packages/cli/src/ui/components/Help.tsx @@ -8,6 +8,7 @@ import type React from 'react'; import { Box, Text } from 'ink'; import { theme } from '../semantic-colors.js'; import { type SlashCommand, CommandKind } from '../commands/types.js'; +import { KEYBOARD_SHORTCUTS_URL } from '../constants.js'; interface Help { commands: readonly SlashCommand[]; @@ -188,7 +189,7 @@ export const Help: React.FC = ({ commands }) => ( For a full list of shortcuts, see{' '} - docs/cli/keyboard-shortcuts.md + {KEYBOARD_SHORTCUTS_URL} diff --git a/packages/cli/src/ui/constants.ts b/packages/cli/src/ui/constants.ts index f6c867f56f..681a33a71b 100644 --- a/packages/cli/src/ui/constants.ts +++ b/packages/cli/src/ui/constants.ts @@ -32,4 +32,7 @@ export const MAX_MCP_RESOURCES_TO_SHOW = 10; export const WARNING_PROMPT_DURATION_MS = 1000; export const QUEUE_ERROR_DISPLAY_DURATION_MS = 3000; export const SHELL_ACTION_REQUIRED_TITLE_DELAY_MS = 30000; + +export const KEYBOARD_SHORTCUTS_URL = + 'https://geminicli.com/docs/cli/keyboard-shortcuts/'; export const LRU_BUFFER_PERF_CACHE_LIMIT = 20000;