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