Repository navigation
refactor(tui): simplify undo and redo keybindings - #1221
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Bind undo to Ctrl+_ (plus Kitty-protocol Ctrl+Shift+-), Alt+Z, and Cmd+Z, and bind redo to Alt+Shift+Z and Cmd+Shift+Z. Remove the non-standard Alt+_, Alt+Shift+_, and Alt+Shift+- redo chords, and update keymap tests, app input tests, and the TUI keybindings reference.
hakula139
force-pushed
the
refactor/simplify-undo-redo-keybindings
branch
from
December 6, 2026 09:57
79d3a30 to
99b2743
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Simplify
ox-tui's default undo / redo keybindings to pairAlt+Z/Alt+Shift+ZandCmd+Z/Cmd+Shift+Zalongside ReadlineCtrl+_, removing the non-standardAlt+_,Alt+Shift+_, andAlt+Shift+-redo chords.CommandId::UndotoCtrl+_,Ctrl+Shift+-(Kitty-protocol encoding ofCtrl+_),Alt+Z, andCmd+Z.CommandId::RedotoAlt+Shift+ZandCmd+Shift+Z.Alt+_,Alt+Shift+_, andAlt+Shift+-from the default keymap.keymapunit tests,Appinput tests, anddocs/reference/tui/keybindings.md.Test plan
cargo test -p ox-tui(308 unit tests + 2 preview tests passed)nix develop -c run-hooks(all 20 hooks passed, includingclippy,rustfmt,cspell,markdownlint-cli2,dprint, andprettier)