fix(git): navigation in diffs

When using delta diff, you could not navigate the hunks of the diff. It
would only jump between file changes. This was due to the use of the raw
hunk header. It must not be included in the default `navigate-regex`.

I have updated the regex so it includes the default hunk patter so now
when you have in a diff and press `n` it will navigate the hunks as well
as the file changes.
This commit is contained in:
Ade Attwood 2024-06-14 18:09:56 +01:00
parent e1fc3341e6
commit 0e90eac407

View file

@ -32,6 +32,7 @@
[delta] [delta]
line-numbers = true line-numbers = true
navigate = true navigate = true
navigate-regex = "^(modified|added:|removed:|renamed:|Δ|@@\\s)"
hunk-header-style = raw hunk-header-style = raw
hunk-header-decoration-style = ul hunk-header-decoration-style = ul
file-modified-label = "modified:" file-modified-label = "modified:"