summary refs log tree commit diff
path: root/.config/git/tig
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.config/git/tig41
1 files changed, 41 insertions, 0 deletions
diff --git a/.config/git/tig b/.config/git/tig
new file mode 100644
index 0000000..3ab5af7
--- /dev/null
+++ b/.config/git/tig
@@ -0,0 +1,41 @@
+[tig "color"]
+    cursor = default default bold reverse
+    title-focus = black blue
+    title-blur = black white
+
+[tig "bind"]
+    generic = y none
+    generic = yy !@wl-copy -n "%(commit)"
+    generic = I !@fyi -u critical -a tig -- 'tig: you should use yy'
+
+    generic = G move-last-line
+    generic = V view-pager
+    ; generic = <Ctrl-n> find-next
+    ; generic = <Ctrl-p> find-prev
+    ; generic = <Ctrl-l> scroll-right
+    ; generic = <Ctrl-h> scroll-left
+    ; generic = <Ctrl-g> refresh
+    generic = ~ :goto %(commit)^
+
+    main = g none
+    main = gg move-first-line
+    main = G move-last-line
+    main = <esc>g :toggle commit-title-graph
+
+    diff = g none
+    diff = gg move-first-line
+    diff = G move-last-line
+    diff = n :/^@@
+    diff = p :?^@@
+
+    stage = n :/^@@
+    stage = p :?^@@
+
+    pager = n :/^@@
+    pager = p :?^@@
+
+    log = n :/^commit
+    log = p :?^commit
+    log = I !@wl-copy -n "%(commit)"
+
+; vim: ft=gitconfig expandtab shiftwidth=4