[PR #4414] Updated help dialog to use dynamic keybind #10964

Closed
opened 2026-02-16 18:15:44 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/4414

State: closed
Merged: Yes


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

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/4414 **State:** closed **Merged:** Yes --- 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 <a href="https://opencode.ai/s/smrGJCUR"><img width="200" alt="New%20session%20-%202025-11-17T16%3A14%3A18.762Z" src="https://social-cards.sst.dev/opencode-share/TmV3IHNlc3Npb24gLSAyMDI1LTExLTE3VDE2OjE0OjE4Ljc2Mlo=.png?model=opencode/glm-4.6&version=1.0.68&id=smrGJCUR" /></a> [opencode session](https://opencode.ai/s/smrGJCUR)&nbsp;&nbsp;|&nbsp;&nbsp;[github run](/sst/opencode/actions/runs/19436385358)
yindo added the pull-request label 2026-02-16 18:15:44 -05:00
yindo closed this issue 2026-02-16 18:15:44 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10964