-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.tigrc
More file actions
60 lines (48 loc) · 1.98 KB
/
Copy path.tigrc
File metadata and controls
60 lines (48 loc) · 1.98 KB
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
set main-view = line-number:no,interval=5 id:yes date:default author:abbreviated commit-title:yes,graph,refs,overflow=no
# Refresh is currently broken (see https://github.com/jonas/tig/issues/430)
# Having this enabled also sometimes closes the stage view when staging/unchanging stages
# See https://github.com/jonas/tig/issues/482
# set refresh-mode = periodic
# set refresh-interval = 2
##
# Bindings
#
bind generic <PgDown> move-half-page-down
bind generic <PgUp> move-half-page-up
bind generic <C-j> scroll-line-down
bind generic <C-k> scroll-line-up
bind generic <C-r> refresh
bind main <C-F> @?git commit --fixup=%(commit) # Fixup commit
bind main R @?git rebase --interactive %(commit) # Interactive rebase
bind status u status-update # Stage/unstage changes in file
bind status ! none
bind status R status-revert # Revert changes in file
bind status M status-merge # Open git-mergetool(1)
bind status C @git commit # Commit
bind status A @?git commit --amend # Amend commit
bind status D @?rm %(file) # Delete file
##
# Colors
#
color cursor white color236 bold
color title-blur white default
color title-focus white color236 bold
color "commit " default default
color "Refs: " default default
color "Author: " default default
color "AuthorDate: " default default
color "Commit: " default default
color "CommitDate: " default default
color "diff --" blue default bold underline
color "--- " default default
color "+++ " default default
color "index " default default
color "@@" cyan default
color main-ref yellow default
color main-head yellow default bold underline
color diff-stat blue default
color section blue default
color stat-none default default
color stat-staged green default
color stat-unstaged red default
color stat-untracked red default