-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 --navigate n/N jumps to next/prev hunk, not file? #1666
Comments
Seeing the same in delta 0.17.0 |
I'm a bit annoyed by this as well. Jumping to the next hunk is usually such a small jump that scrolling with Ctrl+D/U already is more than good enough. And it's especially annoying with large files like lock files. But this behavior is documented in the Features list of the README.md (even though it's missing from the docs):
There are 2 options to fix this:
|
Just want to say that I sympathise with this! I also find that if I'm using navigate to jump, then by-hunk jumps often feel too small. So I'm open to interface design change proposals here. A related variant is to increase our diff context, i.e. with [diff]
context = 99 If we set that number large enough, then there are no within-file hunks any longer hence navigate jumps become by-file! Of course it can sometimes not be exactly what you want to have to scroll past large sections of unchanged content, but sometimes the lack of hunk breaks makes diffs easier to understand. |
Possibly a misunderstanding? But when I turn on navigation, do
git diff
and pressn
, the screen advances to the next hunk, even if it is in the same file.I'm using delta 0.16.5, from Fedora repos. Running inside tmux on Alacritty, if that is relevant.
The text was updated successfully, but these errors were encountered: