diff options
author | typebrook <typebrook@gmail.com> | 2019-03-19 22:52:09 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2019-03-19 22:52:09 +0800 |
commit | 95ab29219e99bf04b5e64c916bf085db626b7f1b (patch) | |
tree | 30c44145c722d629e5a834d3fe618a2f75acfbc5 /tigrc | |
parent | 522f4f3a9dda1a8a4871243e6cec47cd7a5cc5ac (diff) |
update
Diffstat (limited to 'tigrc')
-rw-r--r-- | tigrc | 55 |
1 files changed, 31 insertions, 24 deletions
@@ -7,8 +7,8 @@ bind generic x :toggle id | |||
7 | bind generic 9 !@sh -c "echo -n %(commit) | head -c7 | xclip -selection c" | 7 | 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 gr view-grep | ||
11 | bind generic G move-last-line | 10 | bind generic G move-last-line |
11 | bind generic gr 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 |
@@ -16,54 +16,61 @@ set line-graphics = utf-8 | |||
16 | set refresh-mode = after-command | 16 | set refresh-mode = after-command |
17 | 17 | ||
18 | # main view | 18 | # main view |
19 | set main-view = \ | ||
20 | date:default \ | ||
21 | author:abbreviated \ | ||
22 | id \ | ||
23 | commit-title:graph=v2,refs=true | ||
24 | |||
19 | bind main ` :toggle commit-title-graph | 25 | bind main ` :toggle commit-title-graph |
20 | bind main G move-last-line | 26 | |
27 | bind main b none | ||
28 | bind main bn @git branch "%(prompt Enter branch name: )" %(commit) | ||
29 | bind main bd @git branch -d "%(prompt Delete branch: )" | ||
30 | bind main bD ?git branch -D "%(prompt Delete branch anyway: )" | ||
31 | bind main bv +git branch -vv | ||
21 | bind main c @sh -c "git branch --points-at=%(commit) | \ | 32 | bind main c @sh -c "git branch --points-at=%(commit) | \ |
22 | sed -n '/^*/ {n;p}' | \ | 33 | sed -n '/^*/ {n;p}' | \ |
23 | (cat -; echo %(commit)) | \ | 34 | (cat -; echo %(commit)) | \ |
24 | head -1 | \ | 35 | head -1 | \ |
25 | xargs git checkout" | 36 | xargs git checkout" |
37 | |||
38 | bind main m ?git merge %(commit) | ||
39 | bind main M ?git merge %(commit) --no-ff | ||
40 | bind main p ?git push | ||
41 | |||
42 | bind main u ?git reset %(commit) --soft | ||
43 | bind main gu ?git reset %(commit) --hard | ||
44 | bind main <Ctrl-r> !?git rebase -i %(commit) | ||
45 | |||
26 | bind main Tn @git tag "%(prompt Enter tag name: )" %(commit) | 46 | bind main Tn @git tag "%(prompt Enter tag name: )" %(commit) |
27 | bind main TN !git tag "%(prompt Enter tag name: )" %(commit) -a | 47 | bind main TN !git tag "%(prompt Enter tag name: )" %(commit) -a |
28 | bind main Td @git tag -d "%(prompt Delete tag: )" | 48 | bind main Td @git tag -d "%(prompt Delete tag: )" |
29 | bind main Tp ?git push --tags | 49 | bind main Tp ?git push --tags |
30 | bind main gdt @git tag -d %(tag) | 50 | bind main gdt @git tag -d %(tag) |
31 | bind main <Ctrl-r> !?git rebase -i %(commit) | 51 | |
32 | bind main m ?git merge %(commit) | ||
33 | bind main M ?git merge %(commit) --no-ff | ||
34 | bind main P ?git push | ||
35 | bind main B !sh scripts/bump_version.sh | 52 | bind main B !sh scripts/bump_version.sh |
36 | bind main V @git log -S "%(prompt Enter search word: )" | 53 | bind main V @git log -S "%(prompt Enter search word: )" |
37 | bind main b none | ||
38 | bind main bn @git branch "%(prompt Enter branch name: )" %(commit) | ||
39 | bind main bd @git branch -d "%(prompt Delete branch: )" | ||
40 | bind main bD ?git branch -D "%(prompt Delete branch anyway: )" | ||
41 | bind main bv +git branch -vv | ||
42 | bind main u ?git reset %(commit) --soft | ||
43 | bind main gu ?git reset %(commit) --hard | ||
44 | |||
45 | set main-view = \ | ||
46 | date:default \ | ||
47 | author:abbreviated \ | ||
48 | id \ | ||
49 | commit-title:graph=v2,refs=true | ||
50 | 54 | ||
51 | # blame view | 55 | # blame view |
52 | set blame-view-file-name = no | 56 | set blame-view-file-name = no |
53 | set blame-view-line-number = yes,interval=5 | 57 | set blame-view-line-number = yes,interval=5 |
54 | 58 | ||
55 | # status view | 59 | # status view |
60 | bind status j :/^[MADRU?] | ||
61 | bind status k :?^[MADRU?] | ||
62 | |||
56 | bind status s ?git stash | 63 | bind status s ?git stash |
57 | bind status S @git stash save "%(prompt Enter stash name: )" | 64 | bind status S @git stash save "%(prompt Enter stash name: )" |
58 | bind status gs !git stash save -p "%(prompt Enter stash name: )" | 65 | bind status gs !git stash save -p "%(prompt Enter stash name: )" |
59 | bind status p !git checkout --patch -- %(file) | 66 | bind status p !git checkout --patch -- %(file) |
60 | bind status D ?rm %(file) | 67 | bind status Tu @git update-index --assume-unchanged %(file) |
61 | bind status a ?git commit --amend | 68 | |
62 | bind status c @git commit -m "%(prompt Enter commit message: )" | 69 | bind status c @git commit -m "%(prompt Enter commit message: )" |
63 | bind status C !git commit | 70 | bind status C !git commit |
64 | bind status j :/^[MADRU?] | 71 | bind status a ?git commit --amend |
65 | bind status k :?^[MADRU?] | 72 | |
66 | bind status Tu @git update-index --assume-unchanged "%(file)" | 73 | bind status D ?rm %(file) |
67 | 74 | ||
68 | # stash view | 75 | # stash view |
69 | bind stash D ?git stash drop %(stash) | 76 | bind stash D ?git stash drop %(stash) |