-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Closed
Labels
opentuiThis relates to changes in v1.0, now that opencode uses opentuiThis relates to changes in v1.0, now that opencode uses opentui
Description
Problem
Several dialog keybinds are hardcoded and cannot be customized:
- Session list:
ctrl+d(delete),ctrl+r(rename) - Stash dialog:
ctrl+d(delete) - Model dialog:
ctrl+a(provider list),ctrl+f(favorite toggle)
Users who have conflicts with these keybinds (e.g., ctrl+d for shell EOF, ctrl+r for reverse search) cannot remap them.
Proposed Solution
Add new keybind config options:
session_delete- defaultctrl+dsession_rename- defaultctrl+rstash_delete- defaultctrl+dmodel_provider_list- defaultctrl+amodel_favorite_toggle- defaultctrl+f
Usage
{
"keybinds": {
"session_delete": "super+d",
"session_rename": "super+r"
}
}Files to Modify
packages/opencode/src/config/config.tspackages/opencode/src/cli/cmd/tui/component/dialog-session-list.tsxpackages/opencode/src/cli/cmd/tui/component/dialog-stash.tsxpackages/opencode/src/cli/cmd/tui/component/dialog-model.tsxpackages/opencode/src/util/keybind.ts
Metadata
Metadata
Assignees
Labels
opentuiThis relates to changes in v1.0, now that opencode uses opentuiThis relates to changes in v1.0, now that opencode uses opentui