-
Notifications
You must be signed in to change notification settings - Fork 411
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
🚀 Keybinding to jump between files in navigate mode #680
Comments
Hi @tjkirch! I think you're right -- it looks like we need to expose a bit more control over the details of the |
@dandavison I think it's also worth thinking about the order of the labels in the regex.
(the hunk label is last), it will be easy to switch to jumping by files by pressing /, Up, and removing the last couple of chars and pressing Enter. |
Thanks @lepotic for the suggestion. Fixes #680
Nice @lepotic. Thanks very much for that suggestion. I've made your change and opened PR #684. I'm thinking that gives us a pretty workable solution; @tjkirch @lepotic what do you think? #684 PR description copied below: Fixes #680 cc @tjkirch @lepotic This changes the labels that delta adds when
As suggested by @lepotic #680 (comment), this allows us to switch to navigating by file with In other words, using
and then editing this to remove the lower-case delta:
and finally resuming search with The labels can be modified. E.g.
(and it is ok to use something like |
Released in 0.9.0 (I changed the default value of |
Would it be possible to add additional keybindings that jump to the next or previous file in a diff? Some files have many diff hunks (such as generated files, like Cargo.lock in Rust) and it'd be nice to be able to skip down to the next file.
I see that the keybindings for navigating hunks insert a search pattern in less's history, and I don't see a way for less to have multiple patterns or keybindings, so I couldn't personally see a way without switching pager.
The text was updated successfully, but these errors were encountered: