From 7e0e0f5baf57fb8ee35000cc7d9379a7d75c9ab0 Mon Sep 17 00:00:00 2001 From: druckdev <63563978+druckdev@users.noreply.github.com> Date: Thu, 24 Sep 2020 03:24:56 +0200 Subject: [PATCH] git: Enable jumps between different files in diff Jump between file sections and commits by using n and N. Taken from: https://github.com/so-fancy/diff-so-fancy/blob/eef379ee43f86/pro-tips.md Remove FX flags since they are incompatible with the pattern search: When showing a small change that fits on less than the screen height, the rest of the screen is filled with ~ lines instead of quitting the pager. This behaviour is annoying and thus the flags are deactivated. Since git adds them per default they have to be explicitly disabled. --- .config/git/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/git/config b/.config/git/config index 9d0d5b3..6b8c026 100644 --- a/.config/git/config +++ b/.config/git/config @@ -12,7 +12,7 @@ added = 076 untracked = 014 [core] - pager = diff-so-fancy | less --tabs=8 -RFX + pager = diff-so-fancy | less --tabs=8 -RG -+FX -p'^(Date|added|deleted|modified): ' excludesfile = ~/.config/git/ignore [alias] root = rev-parse --show-toplevel