diff options
author | typebrook <typebrook@gmail.com> | 2019-02-25 17:57:33 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2019-02-25 17:57:33 +0800 |
commit | eebd1149c1b8aa27b239ba7faf238b6c8b76c968 (patch) | |
tree | 89a2cf98622285ac3778f5dd91e13ef3fdaab5b8 | |
parent | 2e80562f23bf616c15adb423c05c0da441e3ff47 (diff) |
update
-rw-r--r-- | tigrc | 54 |
1 files changed, 36 insertions, 18 deletions
@@ -1,9 +1,19 @@ | |||
1 | # ref: | ||
2 | # https://qiita.com/sfus/items/063797a1dd8fdc7d032f | ||
3 | # https://github.com/jonas/tig/wiki/Bindings | ||
4 | |||
1 | bind generic x :toggle id | 5 | bind generic x :toggle id |
2 | bind generic 9 !@sh -c "echo -n %(commit) | head -c7 | xclip -selection c" | 6 | bind generic 9 !@sh -c "echo -n %(commit) | head -c7 | xclip -selection c" |
7 | bind generic <Esc>g move-first-line | ||
8 | bind generic <Esc>G move-last-line | ||
9 | bind generic w :toggle ignore-case | ||
3 | 10 | ||
4 | bind main c !?git checkout %(commit) | 11 | bind main c ?git checkout %(commit) |
5 | bind main T !@git tag "%(prompt Enter tag name: )" %(commit) | 12 | bind main T @git tag "%(prompt Enter tag name: )" %(commit) |
6 | bind main <Ctrl-r> !?git rebase -i %(commit) | 13 | bind main <Ctrl-r> !?git rebase -i %(commit) |
14 | bind main M ?git merge %(commit) | ||
15 | bind main P ?git push | ||
16 | bind main b @git checkout -b "%(prompt Enter branch name: )" %(commit) | ||
7 | 17 | ||
8 | set main-view = \ | 18 | set 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 | ||
14 | set blame-view = \ | 24 | set 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 | ||
21 | bind status S !?git stash | 31 | bind status s ?git stash |
22 | bind status P !?git stash pop | 32 | bind status p ?git stash pop |
23 | bind status D !rm %(file) | 33 | bind status D ?rm %(file) |
24 | bind status a !git commit --amend | 34 | bind status a ?git commit --amend |
25 | 35 | ||
26 | bind stash D !?git stash drop %(stash) | 36 | bind stash D ?git stash drop %(stash) |
27 | bind stash A !?git stash apply %(stash) | 37 | bind stash a ?git stash apply %(stash) |
28 | 38 | ||
29 | bind refs d !?git branch -d %(branch) | 39 | bind refs d ?git branch -d %(branch) |
30 | bind refs c !?git checkout %(branch) | 40 | bind refs <Esc>d ?git branch -D %(branch) |
41 | bind refs c ?git checkout %(branch) | ||
42 | |||
43 | set ignore-case = true | ||
44 | set line-graphics = utf-8 | ||
45 | # set mouse = true | ||
46 | |||
47 | color diff-header default magenta | ||
48 | color diff-chunk black yellow | ||