feat(cli): replace relative keyboard shortcuts link with web URL (#16479)

This commit is contained in:
Ali Abbas
2026-01-17 18:54:36 +05:00
committed by GitHub
parent 86dbf2013e
commit 6900253cb8
2 changed files with 5 additions and 1 deletions

View File

@@ -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<Help> = ({ commands }) => (
<Text color={theme.text.primary}>
For a full list of shortcuts, see{' '}
<Text bold color={theme.text.accent}>
docs/cli/keyboard-shortcuts.md
{KEYBOARD_SHORTCUTS_URL}
</Text>
</Text>
</Box>

View File

@@ -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;