aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2019-03-11 09:57:29 +0800
committertypebrook <typebrook@gmail.com>2019-03-11 09:57:29 +0800
commitc738efc6a2022eff8cd9367dafe653f02bb0db4e (patch)
treea1d4bcefc0decd22bd7bf08090cc0add27d27ed8
parent00d47d3c0c7a2b5d4a5a46bac1e6cd84f86a2425 (diff)
update
-rw-r--r--tigrc16
1 files changed, 11 insertions, 5 deletions
diff --git a/tigrc b/tigrc
index 74bfcec..42919a2 100644
--- a/tigrc
+++ b/tigrc
@@ -2,6 +2,7 @@
2# https://qiita.com/sfus/items/063797a1dd8fdc7d032f 2# https://qiita.com/sfus/items/063797a1dd8fdc7d032f
3# https://github.com/jonas/tig/wiki/Bindings 3# https://github.com/jonas/tig/wiki/Bindings
4 4
5# geineric
5bind generic x :toggle id 6bind generic x :toggle id
6bind generic 9 !@sh -c "echo -n %(commit) | head -c7 | xclip -selection c" 7bind generic 9 !@sh -c "echo -n %(commit) | head -c7 | xclip -selection c"
7bind generic g none 8bind generic g none
@@ -10,6 +11,11 @@ bind generic gr view-grep
10bind generic G move-last-line 11bind generic G move-last-line
11bind generic w :toggle ignore-case 12bind generic w :toggle ignore-case
12 13
14set ignore-case = true
15set line-graphics = utf-8
16set refresh-mode = after-command
17
18# main view
13bind main gG :toggle commit-title-graph 19bind main gG :toggle commit-title-graph
14bind main G move-last-line 20bind main G move-last-line
15bind main c @sh -c "git branch --points-at=%(commit) | \ 21bind main c @sh -c "git branch --points-at=%(commit) | \
@@ -36,9 +42,11 @@ set main-view = \
36 id \ 42 id \
37 commit-title:graph=v2,refs=true 43 commit-title:graph=v2,refs=true
38 44
45# blame view
39set blame-view-file-name = no 46set blame-view-file-name = no
40set blame-view-line-number = yes,interval=5 47set blame-view-line-number = yes,interval=5
41 48
49# status view
42bind status s ?git stash 50bind status s ?git stash
43bind status S @git stash save "%(prompt Enter stash name: )" 51bind status S @git stash save "%(prompt Enter stash name: )"
44bind status p ?git stash pop 52bind status p ?git stash pop
@@ -47,19 +55,17 @@ bind status a ?git commit --amend
47bind status j :/^[MADRU?] 55bind status j :/^[MADRU?]
48bind status k :?^[MADRU?] 56bind status k :?^[MADRU?]
49 57
58# stash view
50bind stash D ?git stash drop %(stash) 59bind stash D ?git stash drop %(stash)
51bind stash a ?git stash apply %(stash) 60bind stash a ?git stash apply %(stash)
52 61
62# refs view
53bind refs C none 63bind refs C none
54bind refs c ?git checkout %(branch) 64bind refs c ?git checkout %(branch)
55bind refs d @git branch -d %(branch) 65bind refs d @git branch -d %(branch)
56bind refs b @git branch %(branch) %(commit) 66bind refs b @git branch %(branch) %(commit)
57 67
58set ignore-case = true 68# color
59set line-graphics = utf-8
60set refresh-mode = after-command
61# set mouse = true
62
63color diff-header black yellow 69color diff-header black yellow
64color diff-chunk white magenta 70color diff-chunk white magenta
65bind status <F4> !sh -c "git difftool -y \"$(git rev-parse --show-toplevel)/%(file)\"" 71bind status <F4> !sh -c "git difftool -y \"$(git rev-parse --show-toplevel)/%(file)\""