From 154006469c415536cecd83a96a04ed8804d61e15 Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" <219766164+opencode-agent[bot]@users.noreply.github.com> Date: Mon, 17 Nov 2025 10:18:59 -0600 Subject: [PATCH] Updated help dialog to use dynamic keybind (#4414) Co-authored-by: opencode-agent[bot] Co-authored-by: rekram1-node --- packages/opencode/src/cli/cmd/tui/ui/dialog-help.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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() { esc/enter - Press Ctrl+P to see all available actions and commands in any context. + + Press {keybind.print("command_list")} to see all available actions and commands in any context. + dialog.clear()}>