Skip to content

Updated help dialog to use dynamic keybind#4414

Merged
rekram1-node merged 1 commit into
devfrom
opencode/issue4366-20251117161419
Nov 17, 2025
Merged

Updated help dialog to use dynamic keybind#4414
rekram1-node merged 1 commit into
devfrom
opencode/issue4366-20251117161419

Conversation

@opencode-agent
Copy link
Copy Markdown
Contributor

Perfect! I've successfully updated the help dialog to use the actual command_list keybind instead of hardcoding Ctrl+P. The changes are:

  1. Added import for useKeybind from @tui/context/keybind
  2. Added const keybind = useKeybind() to access the keybind context
  3. Updated the help text to use {keybind.print("command_list")} instead of hardcoded "Ctrl+P"

Now the help dialog will correctly display whatever keybind is configured for the command_list command in the user's opencode.json file.

Closes #4366

New%20session%20-%202025-11-17T16%3A14%3A18.762Z
opencode session  |  github run

Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
@rekram1-node rekram1-node merged commit 1540064 into dev Nov 17, 2025
5 checks passed
@rekram1-node rekram1-node deleted the opencode/issue4366-20251117161419 branch November 17, 2025 16:19
xywsxp pushed a commit to xywsxp/opencode that referenced this pull request Apr 24, 2026
Updated help dialog to use dynamic keybind (anomalyco#4414)

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
Rwanbt pushed a commit to Rwanbt/opencode that referenced this pull request May 5, 2026
Updated help dialog to use dynamic keybind (anomalyco#4414)

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

command_list key binding not properly reflected in /help

1 participant