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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user