-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tigrc
106 lines (84 loc) · 2.94 KB
/
.tigrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# vim:set sw=4 ts=4 et:
# Variables {{{
set horizontal-scroll = 33%
set line-graphics = yes
set tab-size = 4 # Number of spaces per tab
# }}}
# Views {{{
set blame-view = date:default author:full file-name:auto id:yes,color line-number:no,interval=5 text
set grep-view = file-name:no line-number:yes,interval=1 text
set main-view = line-number:no,interval=5 id:yes date:default author:full commit-title:yes,graph,refs,overflow=no
set refs-view = date:default author:full ref commit-title
set stash-view = line-number:no,interval=5 id:no date:default author:full commit-title
set status-view = line-number:no,interval=5 status:short file-name
set tree-view = line-number:no,interval=5 mode author:full file-size date:default id:no file-name
# }}}
# Colors {{{
color id red default bold
color status yellow default bold
color title-blur white black
color date yellow default
color author green default
color main-head magenta default
color main-tag magenta default
color stat-staged green default
color stat-unstaged red default
color stat-untracked yellow default
color tree.header white default
color tree.directory cyan default
color diff-stat cyan default bold
color graph-commit yellow default bold
color "index " white default
# }}}
# Bindings {{{
# Generic {{{
bind generic F !git fetch
bind generic Y !@sh -c "echo -n %(commit) | xclip -selection c"
# }}}
# Main {{{
bind main ! !git revert %(commit)
bind main C !?git checkout %(commit)
bind main H !?git reset --hard %(commit)
bind main R !git rebase -i --autosquash %(commit)^
bind main P !git cherry-pick %(commit)
bind main F !@sh -c "git show %(commit) --pretty=format: --name-only | xargs | xsel -ib"
bind main E !<sh -c "vim -c 'Gedit %(commit)' $(ls | head -1)"
bind main V !<sh -c "vim $(git show %(commit) --pretty=format: --name-only | xargs)"
# }}}
# Diff {{{
bind diff <Up> move-up
bind diff <Down> move-down
bind diff , previous
bind diff . next
# Edit all files of commit
bind diff A !git add %(file) # Add current file
bind diff C !git commit -av # Add and commit
bind diff P !git add -p %(file) # Partially add current file
bind diff F !@sh -c "git show %(commit) --pretty=format: --name-only | xargs | xsel -ib"
bind diff E !<sh -c "vim -c 'Gedit %(commit)' $(ls | head -1)"
bind diff V !<sh -c "vim $(git show %(commit) --pretty=format: --name-only | xargs)"
set diff-context = 20
# }}}
# Tree {{{
bind tree V !vim %(file)
# }}}
# Branch {{{
bind branch N !@git branch %(prompt)
bind branch C !@git co %(branch)
bind branch R !@git rebase
bind branch D !@git branch -D %(branch)
# }}}
# Status {{{
bind status R !@git reset HEAD %(file)
bind status A !@git commit --amend
bind status N !@git add -N %(file)
# }}}
# Stage {{{
bind stage 1 stage-update-line # Stage a single line
bind stage C !@git commit # Commit staging changes
bind stage <Up> move-up
bind stage <Down> move-Down
bind stage , previous
bind stage . next
# }}}
# }}}