feat(tui): add vim hjkl navigation and mouse scroll support#36
Merged
SaladDay merged 1 commit intoSaladDay:mainfrom Feb 22, 2026
Merged
feat(tui): add vim hjkl navigation and mouse scroll support#36SaladDay merged 1 commit intoSaladDay:mainfrom
SaladDay merged 1 commit intoSaladDay:mainfrom
Conversation
Remap h/j/k/l to arrow keys after text-input early returns, so all 60+ Up/Down/Left/Right branches work with vim keys automatically. Filter, editor, and form modes are unaffected. Also handle MouseEventKind::ScrollUp/ScrollDown in the event loop by synthesizing arrow key events, enabling scroll wheel navigation. Closes SaladDay#35 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Owner
|
感谢你的贡献!!🎉 |
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.
Closes #35
Changes
Vim hjkl navigation (
app.rs, +9 lines)h/j/k/l→←/↓/↑/→at the top ofon_key, after filter/editor/form/overlay early returnsMouse scroll (
mod.rs, +33 lines)ScrollUp/ScrollDownin the event loop by synthesizing arrow key eventson_keylogic — zero duplicationDesign decisions
Char('j')at 60+KeyCode::Downsites, a single remap at the top ofon_keyis minimal and future-proofKeyEvent::Up/Downreuses all existing navigation logic without touching any route handler