From 0e90eac4071760c7c650d32359763d7746f5f964 Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Fri, 14 Jun 2024 18:09:56 +0100 Subject: [PATCH] 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. --- site-modules/core/templates/gitconfig.liquid | 1 + 1 file changed, 1 insertion(+) diff --git a/site-modules/core/templates/gitconfig.liquid b/site-modules/core/templates/gitconfig.liquid index 1dc58b2..8e36e5e 100644 --- a/site-modules/core/templates/gitconfig.liquid +++ b/site-modules/core/templates/gitconfig.liquid @@ -32,6 +32,7 @@ [delta] line-numbers = true navigate = true + navigate-regex = "^(modified|added:|removed:|renamed:|Δ|@@\\s)" hunk-header-style = raw hunk-header-decoration-style = ul file-modified-label = "modified:"