feat: add keybindings reference dialog to TUI #3888
+86
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.


Problem
When using the TUI, there's no easy way to discover what keybindings are available. Users have to check documentation or dig through config files to find out what shortcuts they can use. This makes it harder to learn and use the TUI efficiently.
Solution
I added a simple keybindings reference dialog that displays all available keybindings in one place. The approach was straightforward - the goal was to display keybindings, so I made them displayable. No overthinking, just a practical solution.
What Changed
New Component:
dialog-keybindings.tsxthat lists all keybindings with descriptionsDialogSelectcomponent for consistency with other TUI dialogs (models, themes, sessions)Configuration:
keybindings_listconfig option with default keybinding<leader>?(ctrl+x + ?)Integration:
app.tsxHow to Use
Via Keybinding:
ctrl+x(leader key), then?Via Command Palette:
ctrl+pImplementation Notes
I followed the existing patterns in the codebase:
DialogSelectcomponent (same as model/theme lists)useKeybind()hook to fetch all keybindings dynamicallySimplicity first - just showing what's there, no extra features.
Fixes #3886