Repository navigation
Cross file motion / Continuous mode: move on the next file when reaching - #371
Merged
Merged
Conversation
a boundary press while the next file was still loading stepped the tree again. A held `j` could pass files that were never shown, and `j` then `k` left the tree on one file and the pane on another. Such a press is ignored until the request completes or is canceled. the cursor position queued for the next file was applied by the next accepted successful load. A compact toggle mid-crossing sent the cursor to the top of the current file and left the compact anchor unapplied, and a failed load kept the queued position armed. It carries its load's sequence and a superseding accepted load drops it. Reload clears the outstanding request, so a failed file-list reload cannot leave crossing blocked. extracted cursor placement into `placeCursorAfterLoad` to satisfy gocyclo. Tests are folded into diffnav_test.go, with regression tests for reversal, compact supersession, failed loads and cancellation. Plugin skills pass `--cross-file-motion` only when the user asks, like `--start-at-change`.
…irectory a mouse click can leave the tree cursor on a directory row. Cross-file motion stepped from that row, so `j` at the file edge skipped a file and `k` could move forward. In that case it steps from the displayed file. Home/End get their own test with the cursor parked where each action sends it, so the no-crossing assertion can fail. The "config file false overrides env" subtest set no env var and asserted the default, so it is removed. `crossFileMotionAction` is a method. Codex usage.md and config.md match the Claude copies for both cross-file flags.
Owner
|
the gap is real: I pushed two commits on top of yours:
for next time, pls read CONTRIBUTING.md before opening a PR and decide from it what the change needs. A first PR here needs an issue stating the problem you hit and my approval before any code is written. Ideas and brainstorming go to Discussions. A PR explains the problem and how the change solves it, and it is code you have read that passes |
umputun
added a commit
that referenced
this pull request
Oct 5, 2026
a compact toggle during an in-flight file switch leaves the tree and the pane on different files. The cross-file hunk jump queued by `]` is applied by the next accepted successful file load, whatever file it is for. A config file value overrides the matching env var, against the documented precedence.
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.
DISCLAIMER: This is just a proof of concept for my feature request, not an actual PR.
100% vibe coded using qwen 3.8 flash next (low quality model), barely reviewed the code, I don't know your codebase, I didn't even read a single contribute/readme and I'm not a go developer (but your diff tool is great !).
It would be useful to move on the next file when we press page down or down and we are already at the bottom of a file. Or move up when already at the top and pressing up/page up.
This poc implements it and it works.