summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoropencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>2025-11-17 10:18:59 -0600
committerGitHub <[email protected]>2025-11-17 10:18:59 -0600
commit154006469c415536cecd83a96a04ed8804d61e15 (patch)
treeeb0790e3c57f3503166420caf39d9d57e37457ab
parenta1214fff2eaa71b3346f53580e6e94376ac9050d (diff)
downloadopencode-154006469c415536cecd83a96a04ed8804d61e15.tar.gz
opencode-154006469c415536cecd83a96a04ed8804d61e15.zip
Updated help dialog to use dynamic keybind (#4414)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> Co-authored-by: rekram1-node <[email protected]>
-rw-r--r--packages/opencode/src/cli/cmd/tui/ui/dialog-help.tsx6
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()}>