Skip to content

feat(tui): add custom keybindings, dynamic /help, and command palette - #1044

Merged
hakula139 merged 3 commits into
mainfrom
feat/custom-keybindings-palette
Dec 3, 2026
Merged

hakula139 merged 3 commits into
mainfrom
feat/custom-keybindings-palette

Conversation

@hakula139

Copy link
Copy Markdown
Member

Summary

  • Add [keybindings] configuration schema (KeyBindingValue, KeybindingsConfig) in ox-core with layered config merging and support for single chords, multiple chords, and empty-list unbinding.
  • Implement FromStr and canonical Display for KeyChord, KeymapError, CommandId metadata (ALL, name, from_name, description), and Keymap::from_config in ox-tui, plus normalized KeyEvent lookup and default Ctrl+Shift+P / Cmd+Shift+P bindings for open-palette.
  • Replace hardcoded /help text with dynamic Markdown tables (CommandRegistry::format_help_markdown) rendered via TranscriptEntry::Markdown from the active Keymap and registered slash commands.
  • Add a searchable Overlay::Palette (/palette or Ctrl+Shift+P / Cmd+Shift+P) covering slash commands and key actions, and wire [keybindings] through ResolvedRuntime into App.

Test plan

  • cargo fmt --check
  • cargo clippy --all-targets -- -D warnings
  • cargo doc --no-deps
  • cargo test -p ox-tui (139 passed)
  • cargo llvm-cov -p ox-tui --summary-only (95.08% line coverage)

Related

@hakula139 hakula139 added enhancement New capability area: config Touches config loading, layering, or credential discovery area: tui Touches terminal UI rendering, input, or theming labels Dec 3, 2026
@hakula139 hakula139 self-assigned this Dec 3, 2026
@codecov

codecov Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.13631% with 25 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
crates/ox-tui/src/input/keymap.rs 95.55% 20 Missing ⚠️
crates/ox-tui/src/input/overlay.rs 97.29% 3 Missing ⚠️
crates/ox-tui/src/render/ui.rs 98.40% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@hakula139
hakula139 merged commit e204e3f into main Dec 3, 2026
7 checks passed
@hakula139
hakula139 deleted the feat/custom-keybindings-palette branch December 3, 2026 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: config Touches config loading, layering, or credential discovery area: tui Touches terminal UI rendering, input, or theming enhancement New capability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Customize TUI key bindings

1 participant