1
0
forked from extern/nix-config

meta: Add elementary kitty diff support

Having image diffs in the terminal is very cool, however I ultimately
decided against using kitty's diff feature due to using the existing
colors of the shell being non-trivial.
This commit is contained in:
Donovan Glover 2022-12-15 16:07:23 -05:00
parent a358f5fe56
commit 7eb4952e3e
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
3 changed files with 20 additions and 0 deletions

View File

@ -80,7 +80,9 @@ if not set -q set_abbr
abbr gcl "git clone"
abbr gco "git checkout"
abbr gd "git diff" # Show all file changes not staged yet
abbr gdi "git difftool --no-symlinks --dir-diff"
abbr gds "git diff --staged" # Show changes staged but not committed
abbr gdsi "git difftool --no-symlinks --dir-diff --staged"
abbr gi "git init"
abbr gl "git log --oneline --decorate --all --graph -n 10"
abbr gm "git merge"

View File

@ -12,6 +12,20 @@
excludesfile = ~/.gitignore
quotePath = false
[diff]
tool = kitty
guitool = kitty.gui
[difftool]
prompt = false
trustExitCode = true
[difftool "kitty"]
cmd = kitty +kitten diff $LOCAL $REMOTE
[difftool "kitty.gui"]
cmd = kitty kitty +kitten diff $LOCAL $REMOTE
[web]
browser = qutebrowser

View File

@ -0,0 +1,4 @@
map d scroll_to next-page
map u scroll_to prev-page
map g scroll_to start
map G scroll_to end