diff options
| -rw-r--r-- | packages/opencode/src/cli/cmd/tui/ui/dialog-help.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/opencode/src/cli/cmd/tui/ui/dialog-help.tsx b/packages/opencode/src/cli/cmd/tui/ui/dialog-help.tsx index 19624147d..f522fca9e 100644 --- a/packages/opencode/src/cli/cmd/tui/ui/dialog-help.tsx +++ b/packages/opencode/src/cli/cmd/tui/ui/dialog-help.tsx @@ -2,10 +2,12 @@ import { TextAttributes } from "@opentui/core" import { useTheme } from "@tui/context/theme" import { useDialog } from "./dialog" import { useKeyboard } from "@opentui/solid" +import { useKeybind } from "@tui/context/keybind" export function DialogHelp() { const dialog = useDialog() const { theme } = useTheme() + const keybind = useKeybind() useKeyboard((evt) => { if (evt.name === "return" || evt.name === "escape") { @@ -20,7 +22,9 @@ export function DialogHelp() { <text fg={theme.textMuted}>esc/enter</text> </box> <box paddingBottom={1}> - <text fg={theme.textMuted}>Press Ctrl+P to see all available actions and commands in any context.</text> + <text fg={theme.textMuted}> + Press {keybind.print("command_list")} to see all available actions and commands in any context. + </text> </box> <box flexDirection="row" justifyContent="flex-end" paddingBottom={1}> <box paddingLeft={3} paddingRight={3} backgroundColor={theme.primary} onMouseUp={() => dialog.clear()}> |
