fix(input): ignore modified j/k/up/down in session navigator - #2377
Open
atomsbaza wants to merge 3 commits into
Open
fix(input): ignore modified j/k/up/down in session navigator#2377atomsbaza wants to merge 3 commits into
atomsbaza wants to merge 3 commits into
Conversation
The Char('j')/Char('k')/Down/Up match arms in handle_navigator_key
had no modifier guard, unlike every sibling arm in the same match
block, so Ctrl+K, Alt+J, etc. also moved the navigator selection.
refs herdrdev#1981
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe navigator now moves with unmodified ChangesNavigator input handling
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Greptile SummaryThe PR prevents modified
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| src/app/input/modal.rs | The modifier guards narrowly align navigator movement with sibling modal shortcuts, and the regression test covers the reported Ctrl-modified character keys. |
Reviews (2): Last reviewed commit: "Merge branch 'master' into fix/navigator..." | Re-trigger Greptile
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
handle_navigator_key'sChar('j') | DownandChar('k') | Upmatch arms had no modifier guard, unlike every sibling arm in the same match block ('a','b','w','i','d', all guarded withkey.modifiers.is_empty()or an explicitCONTROLcheck). This meant Ctrl+K, Alt+J, etc. also moved the Session Navigator's row selection.This is a narrow fix for that specific bug (reported as part of #1981 — see the "Also observed: ctrl+k moves the selection up even when navigate_pane_up is unset" note there). It does not address the broader ask in #1981 of making
navigate_pane_up/navigate_pane_downremap the Session Navigator's row movement — that's a different, spatial-pane-focus feature (Mode::Navigate) from the Session Navigator modal (Mode::Navigator, opened viagoto/prefix+g), and extending config into the Navigator would be a behavior change rather than a bug fix, so I left that for a maintainer decision / discussion.Test plan
navigator_ignores_modified_j_and_kinsrc/app/input/modal.rs, which fails on the pre-fix code (Ctrl+K/Ctrl+J move the selection) and passes with the fix.cargo fmt --checkclean.cargo nextest run --locked: 3037/3037 passed (one unrelated pre-existing flaky integration test,live_handoff_keeps_unmanaged_agent_name_bound_to_saved_session, confirmed to fail identically on unmodifiedmaster).refs #1981