feat(tui): add missing toggle and transcript keybinds#603
feat(tui): add missing toggle and transcript keybinds#603Olusammytee wants to merge 2 commits intoKilo-Org:devfrom
Conversation
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge This PR adds missing The changes follow the established pattern consistently — every keybind name matches its config schema key, and the auto-generated SDK types are properly updated. Files Reviewed (5 files)
|
There was a problem hiding this comment.
Pull request overview
This PR adds missing keybind configuration entries for several toggle actions and wires them to existing TUI commands. The changes address feature request #126 by enabling users to configure keyboard shortcuts for frequently used toggle functions, improving the CLI workflow efficiency.
Changes:
- Added 5 new keybind configuration entries (mcp_toggle, console_toggle, diffwrap_toggle, timestamps_toggle, session_copy) to the config schema with default value of "none" to avoid shortcut collisions
- Wired these keybinds to their corresponding command palette entries in the app-level and session-level command registrations
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/opencode/src/config/config.ts | Added 5 new keybind config entries (mcp_toggle, console_toggle, diffwrap_toggle, timestamps_toggle, session_copy) to the Keybinds schema with "none" defaults |
| packages/opencode/src/cli/cmd/tui/app.tsx | Wired keybinds for mcp_toggle, console_toggle, and diffwrap_toggle to their respective command palette entries |
| packages/opencode/src/cli/cmd/tui/routes/session/index.tsx | Wired keybinds for timestamps_toggle and session_copy to their respective command palette entries |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Pushed follow-up commit a7d0f9c to align SDK keybind typings with the new keybind entries (mcp_toggle, console_toggle, diffwrap_toggle, timestamps_toggle, session_copy). This should resolve the typecheck failure. |
Summary
one to avoid introducing new shortcut collisions
Fixes #126