feat(tui): make dialog keybinds configurable (#6143)
Summary
- Add configurable keybinds for dialog actions (delete, rename, favorite, etc.)
- Change
session_renamedefault fromnonetoctrl+r
Closes #6143
New Keybind Options
| Option | Default | Description |
|---|---|---|
session_delete |
ctrl+d |
Delete session |
session_rename |
ctrl+r |
Rename session |
stash_delete |
ctrl+d |
Delete stash entry |
model_provider_list |
ctrl+a |
Open provider list |
model_favorite_toggle |
ctrl+f |
Toggle model favorite |
Usage
{
"keybinds": {
"session_delete": "super+d",
"session_rename": "super+r"
}
}
Note: If another PR touching packages/sdk/openapi.json merges first, rebase and rerun bun ./script/generate.ts, then update packages/sdk/js/src/v2/gen/types.gen.ts.
Updated to address Copilot review feedback:
- Changed
![0]to?.[0]for safer keybind access - Updated
DialogSelecttype to accept optional keybind (allows disabling via"none") - Added filtering for undefined keybinds in the component
This PR also closes #3262.
Yep these should all be configurable, good catch
/review
lgtm
this should be good to merge, ill do so after xmas
Noted, thanks. Will continue rebasing on top of release tags as they're set to make it easier for ya.
/review
this should be good to merge, ill do so after xmas
hey Aiden, this still on track to merge soon? ;)
yeah lemme test when i get home
you have a few prs but im struggling to keep up, consider joining our discord or dming me somewhere to get my attention on these!
consider joining our discord or dming me somewhere to get my attention on these!
done and done :D