File tree Expand file tree Collapse file tree
packages/opencode/src/cli/cmd/tui/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,10 +2,12 @@ import { TextAttributes } from "@opentui/core"
22import { useTheme } from "@tui/context/theme"
33import { useDialog } from "./dialog"
44import { useKeyboard } from "@opentui/solid"
5+ import { useKeybind } from "@tui/context/keybind"
56
67export function DialogHelp ( ) {
78 const dialog = useDialog ( )
89 const { theme } = useTheme ( )
10+ const keybind = useKeybind ( )
911
1012 useKeyboard ( ( evt ) => {
1113 if ( evt . name === "return" || evt . name === "escape" ) {
@@ -20,7 +22,9 @@ export function DialogHelp() {
2022 < text fg = { theme . textMuted } > esc/enter</ text >
2123 </ box >
2224 < box paddingBottom = { 1 } >
23- < text fg = { theme . textMuted } > Press Ctrl+P to see all available actions and commands in any context.</ text >
25+ < text fg = { theme . textMuted } >
26+ Press { keybind . print ( "command_list" ) } to see all available actions and commands in any context.
27+ </ text >
2428 </ box >
2529 < box flexDirection = "row" justifyContent = "flex-end" paddingBottom = { 1 } >
2630 < box paddingLeft = { 3 } paddingRight = { 3 } backgroundColor = { theme . primary } onMouseUp = { ( ) => dialog . clear ( ) } >
You can’t perform that action at this time.
0 commit comments