aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tigrc21
1 files changed, 20 insertions, 1 deletions
diff --git a/tigrc b/tigrc
index f44a8c3..86dc6ed 100644
--- a/tigrc
+++ b/tigrc
@@ -8,13 +8,16 @@ bind generic 9 !@sh -c "echo -n %(commit) | head -c7 | xclip -selection c"
8bind generic g none 8bind generic g none
9bind generic gg move-first-line 9bind generic gg move-first-line
10bind generic G move-last-line 10bind generic G move-last-line
11bind generic gr view-grep 11bind generic E view-grep
12bind generic w :toggle ignore-case 12bind generic w :toggle ignore-case
13 13
14set ignore-case = true 14set ignore-case = true
15set line-graphics = utf-8 15set line-graphics = utf-8
16set refresh-mode = after-command 16set refresh-mode = after-command
17 17
18bind generic L >sh -c "git reflog --pretty=raw | tig --pretty=raw"
19bind generic _ ?git reset --hard HEAD@{"%(prompt Enter HEAD@{} number: )"}
20
18# main view 21# main view
19set main-view = \ 22set main-view = \
20 date:default \ 23 date:default \
@@ -84,6 +87,12 @@ bind stash n @sh -c "git stash drop %(stash) | \
84 tr -d '()' | \ 87 tr -d '()' | \
85 xargs git stash store -m '%(prompt Enter stash name: )'" 88 xargs git stash store -m '%(prompt Enter stash name: )'"
86 89
90# stage view
91bind stage n :/^@@
92bind stage p :?^@@
93bind stage <Esc>n :/^diff --(git|cc)
94bind stage <Esc>p :?^diff --(git|cc)
95
87# tree view 96# tree view
88bind tree d ?rm %(file) 97bind tree d ?rm %(file)
89bind tree 3 !@sh -c "echo -n %(file) | xclip -selection c" 98bind tree 3 !@sh -c "echo -n %(file) | xclip -selection c"
@@ -95,6 +104,16 @@ bind refs c @git checkout %(branch)
95bind refs bd ?git branch -d %(branch) 104bind refs bd ?git branch -d %(branch)
96bind refs bD ?git branch -D %(branch) 105bind refs bD ?git branch -D %(branch)
97 106
107# log view
108bind log n :/^commit
109bind log p :?^commit
110
111# diff view
112bind diff n :/^@@
113bind diff p :?^@@
114bind diff <Esc>n :/^diff --(git|cc)
115bind diff <Esc>p :?^diff --(git|cc)
116
98# color 117# color
99color diff-header black yellow 118color diff-header black yellow
100color diff-chunk white magenta 119color diff-chunk white magenta