From ea2a02626dcdb91d77e78b1a539304d6c59beea1 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Sat, 21 Sep 2024 00:03:01 +0200 Subject: [PATCH] git: Test delta as diff-so-fancy replacement Don't know yet if I like it better --- .config/git/config | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.config/git/config b/.config/git/config index 5b8cc9b..edef4df 100644 --- a/.config/git/config +++ b/.config/git/config @@ -51,8 +51,15 @@ verbose = true [core] abbrev = 12 - pager = diff-so-fancy \ - | less --tabs=8 --RAW-CONTROL-CHARS --quit-if-one-screen + pager = delta + # pager = diff-so-fancy \ + # | less --tabs=8 --RAW-CONTROL-CHARS --quit-if-one-screen +[delta] + navigate = true + commit-decoration-style = bold yellow box + file-style = bold yellow ul + file-decoration-style = none + hunk-header-decoration-style = [diff] # Color moved lines differently colorMoved = default @@ -74,7 +81,7 @@ [init] defaultBranch = main [interactive] - diffFilter = diff-so-fancy --patch + diffFilter = delta --color-only # Might need a `sudo cpan Term::ReadKey` singleKey = true [log]