aboutsummaryrefslogtreecommitdiffhomepage
path: root/tigrc
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2019-02-25 17:57:33 +0800
committertypebrook <typebrook@gmail.com>2019-02-25 17:57:33 +0800
commiteebd1149c1b8aa27b239ba7faf238b6c8b76c968 (patch)
tree89a2cf98622285ac3778f5dd91e13ef3fdaab5b8 /tigrc
parent2e80562f23bf616c15adb423c05c0da441e3ff47 (diff)
update
Diffstat (limited to 'tigrc')
-rw-r--r--tigrc54
1 files changed, 36 insertions, 18 deletions
diff --git a/tigrc b/tigrc
index 1eefc9d..276c314 100644
--- a/tigrc
+++ b/tigrc
@@ -1,9 +1,19 @@
1# ref:
2# https://qiita.com/sfus/items/063797a1dd8fdc7d032f
3# https://github.com/jonas/tig/wiki/Bindings
4
1bind generic x :toggle id 5bind generic x :toggle id
2bind generic 9 !@sh -c "echo -n %(commit) | head -c7 | xclip -selection c" 6bind generic 9 !@sh -c "echo -n %(commit) | head -c7 | xclip -selection c"
7bind generic <Esc>g move-first-line
8bind generic <Esc>G move-last-line
9bind generic w :toggle ignore-case
3 10
4bind main c !?git checkout %(commit) 11bind main c ?git checkout %(commit)
5bind main T !@git tag "%(prompt Enter tag name: )" %(commit) 12bind main T @git tag "%(prompt Enter tag name: )" %(commit)
6bind main <Ctrl-r> !?git rebase -i %(commit) 13bind main <Ctrl-r> !?git rebase -i %(commit)
14bind main M ?git merge %(commit)
15bind main P ?git push
16bind main b @git checkout -b "%(prompt Enter branch name: )" %(commit)
7 17
8set main-view = \ 18set main-view = \
9 date:default \ 19 date:default \
@@ -12,19 +22,27 @@ set main-view = \
12 commit-title:graph=v2,refs=true 22 commit-title:graph=v2,refs=true
13 23
14set blame-view = \ 24set blame-view = \
15 date:default \ 25 date:default \
16 author:abbreviated \ 26 author:abbreviated \
17 file-name:no \ 27 file-name:no \
18 id:yes,color \ 28 id:yes,color \
19 line-number:yes,interval=5 text 29 line-number:yes,interval=5 text
20 30
21bind status S !?git stash 31bind status s ?git stash
22bind status P !?git stash pop 32bind status p ?git stash pop
23bind status D !rm %(file) 33bind status D ?rm %(file)
24bind status a !git commit --amend 34bind status a ?git commit --amend
25 35
26bind stash D !?git stash drop %(stash) 36bind stash D ?git stash drop %(stash)
27bind stash A !?git stash apply %(stash) 37bind stash a ?git stash apply %(stash)
28 38
29bind refs d !?git branch -d %(branch) 39bind refs d ?git branch -d %(branch)
30bind refs c !?git checkout %(branch) 40bind refs <Esc>d ?git branch -D %(branch)
41bind refs c ?git checkout %(branch)
42
43set ignore-case = true
44set line-graphics = utf-8
45# set mouse = true
46
47color diff-header default magenta
48color diff-chunk black yellow