-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtigrc
291 lines (273 loc) · 10.6 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
# Tig default configuration
#
# Please see 'man tigrc' for a complete reference.
# Settings
# --------
# Most of these settings can be toggleable, either via the toggle-*
# actions or via the option menu (bound to `o` by default).
# UI display settings
set show-date = default # Enum: no, default, local, relative, short
set show-author = full # Enum: no, full, abbreviated, email, email-user
set author-width = 18 # The width of the author column
set show-filename = auto # Enum: no, always, auto
set filename-width = 18 # The width of the file name column
set show-file-size = default # Enum: no, default, units
set show-rev-graph = yes # Show the commit revision graph?
set show-line-numbers = no # Show line numbers?
set line-number-interval = 5 # Interval between line numbers.
set show-refs = yes # Show branches, tags and remotes?
set show-changes = yes # Show changes commits in the main view?
set show-id = no # Show commit/tree ID?
set id-width = 7 # Number of characters to show from commit/tree ID
set title-overflow = no # Boolean or int, overflows at 50 when enabled
set wrap-lines = no # Wrap long lines in pager views?
set tab-size = 8 # Number of spaces to use when expanding tabs
set line-graphics = default # Enum: ascii, default, utf-8
# Settings controlling how content is read from Git
set commit-order = default # Enum: default, topo, date, reverse (main)
set status-untracked-dirs = yes # Show files in untracked directories? (status)
set ignore-space = no # Enum: no, all, some, at-eol (diff)
set show-notes = yes # When non-bool passed as `--show-notes=...` (diff)
set diff-context = 3 # Number of lines to show around diff changes (diff)
#set diff-options = -C # User-defined options for `tig show` (diff)
#set blame-options = -C -C -C # User-defined options for `tig blame` (blame)
# Misc
set read-git-colors = yes # Use Git colors?
set ignore-case = no # Ignore case when searching?
set focus-child = yes # Move focus to child view when opened?
set horizontal-scroll = 50% # Number of columns to scroll as % of width
set split-view-height = 67% # Number of lines for bottom view as % of height
set vertical-split = auto # Enum: horizontal, vertical, auto; Use auto to
# switch to horizontal split when width allows it
set editor-line-number = yes # Automatically pass line number to editor? Used
# for opening file at specific line e.g. from a diff
set mouse = no # Enable mouse support?
set mouse-scroll = 3 # Number of lines to scroll via the mouse
# User-defined commands
# ---------------------
# These commands allow to run shell commands directly from within Tig.
# Unless otherwise specified, commands are run in the foreground with
# their console output shown (as if '!' was specified). When multiple
# command options are specified their behavior are combined, e.g. "?<git
# commit" will prompt the user whether to execute the command and will
# exit Tig after completion.
#
# ! Run the command in the foreground with output shown.
# @ Run the command in the background with no output.
# ? Prompt the user before executing the command.
# < Exit Tig after executing the command.
#
# User-defined commands can optionally refer to Tig's internal state
# using the following variable names, which are substituted before
# commands are run:
#
# %(head) The current ref ID. Defaults to HEAD
# %(commit) The current commit ID.
# %(blob) The current blob ID.
# %(branch) The current branch name.
# %(stash) The current stash name.
# %(directory) The current directory path in the tree view;
# empty for the root directory.
# %(file) The currently selected file.
# %(ref) The reference given to blame or HEAD if undefined.
# %(revargs) The revision arguments passed on the command line.
# %(fileargs) The file arguments passed on the command line.
# %(cmdlineargs) All other options passed on the command line.
# %(diffargs) The diff options from `diff-options` or `TIG_DIFF_OPTS`
# %(prompt) Prompt for the argument value.
bind main C ?git cherry-pick %(commit)
bind status C !git commit
bind stash P ?git stash pop %(stash)
bind branch C ?git checkout %(branch)
# Normal commands
# ---------------
# View switching
bind generic m view-main
bind generic d view-diff
bind generic l view-log
bind generic t view-tree
bind generic f view-blob
bind generic B view-blame
bind generic H view-branch
bind generic p view-pager
bind generic h view-help
bind generic S view-status
bind generic c view-stage
bind generic y view-stash
bind generic G view-grep
# View manipulation
bind generic Enter enter # Enter and open selected entry
bind generic < back # Go back to the previous view state
bind generic Down next # Move to next
bind generic ^N next
bind generic Up previous # Move to previous
bind generic ^P previous
bind generic , parent # Move to parent
bind generic Tab view-next # Move focus to the next view
bind generic R refresh # Reload and refresh view
bind generic F5 refresh
bind generic O maximize # Maximize the current view
bind generic q view-close # Close the current view
bind generic Q quit # Close all views and quit
# View specific
bind status u status-update # Stage/unstage changes in file
bind status ! status-revert # Revert changes in file
bind status M status-merge # Open git-mergetool(1)
bind stage u status-update # Stage/unstage current diff (c)hunk
bind stage 1 stage-update-line # Stage/unstage current line
bind stage ! status-revert # Revert current diff (c)hunk
bind stage @ stage-next # Jump to next (c)hunk
bind stage \ stage-split-chunk # Split current diff (c)hunk
bind stage [ diff-context-down # Decrease the diff context
bind stage ] diff-context-up # Increase the diff context
bind diff [ diff-context-down
bind diff ] diff-context-up
# Cursor navigation
bind generic k move-up
bind generic j move-down
bind generic PgDown move-page-down
bind generic ^D move-page-down
bind generic Space move-page-down
bind generic PgUp move-page-up
bind generic ^U move-page-up
bind generic b move-page-up
bind generic - move-page-up
bind generic Home move-first-line
bind generic End move-last-line
# Scrolling
bind generic | scroll-first-col
bind generic Left scroll-left
bind generic Right scroll-right
bind generic Insert scroll-line-up
bind generic ^Y scroll-line-up
bind generic Delete scroll-line-down
bind generic ^E scroll-line-down
bind generic w scroll-page-up
bind generic s scroll-page-down
# Searching
bind generic / search
bind generic ? search-back
bind generic n find-next
bind generic N find-prev
# Option manipulation
bind generic o options # Open the options menu
bind generic . toggle-lineno
bind generic D toggle-date
bind generic A toggle-author
bind generic g toggle-rev-graph
bind generic ~ toggle-graphic
bind generic Hash toggle-filename
bind generic F toggle-refs
# bind generic ? toogle-changes
bind generic I toggle-sort-order
bind generic i toggle-sort-field
bind generic W toggle-ignore-space
# bind generic ? toggle-commit-order
bind generic X toggle-id
bind generic % toggle-files
bind generic $ toggle-title-overflow
# bind generic ? toggle-file-size
# bind genric ? toggle-untracked-dirs
# Misc
bind generic e edit # Open in editor
bind generic : prompt # Open the prompt
bind generic r screen-redraw # Redraw the screen
bind generic ^L screen-redraw
bind generic z stop-loading # Stop all loading views
bind generic v show-version # Show Tig version
# Colors
# ------
# The colors in the UI can be customized. In addition to the colors used
# for the UI you can also define new colors to use in the pager, blob,
# diff, and stage views by placing the text to match for in quotes.
#
# Prefix the name of a view to set a color only for that view, e.g.
#
# color grep.filename blue default
#
# As an example, this setting will to color Signed-off-by lines with a
# yellow foreground color and use the default background color.
#
# color " Signed-off-by" yellow default
#
# Note the four leading spaces in the string to match. This is because
# Git automatically indents commit messages by four spaces.
color "diff --" yellow default
color "@@" magenta default
color "+" green default
color " +" green default
color "-" red default
color " -" red default
color "index " blue default
color "old file mode " yellow default
color "new file mode " yellow default
color "deleted file mode " yellow default
color "copy from " yellow default
color "copy to " yellow default
color "rename from " yellow default
color "rename to " yellow default
color "similarity " yellow default
color "dissimilarity " yellow default
color "diff-tree " blue default
color "Author: " cyan default
color "Commit: " magenta default
color "Merge: " blue default
color "Date: " yellow default
color "AuthorDate: " yellow default
color "CommitDate: " yellow default
color "Refs: " red default
color "Reflog: " red default
color "Reflog message: " yellow default
color "stash@{" magenta default
color "commit " green default
color "parent " blue default
color "tree " blue default
color "author " green default
color "committer " magenta default
color " Signed-off-by" yellow default
color " Acked-by" yellow default
color " Tested-by" yellow default
color " Reviewed-by" yellow default
color default default default normal
color cursor white green bold
color status green default
color delimiter magenta default
color date blue default
color mode cyan default
color id magenta default
color overflow red default
color filename default default
color grep.filename blue default
color file-size default default
color line-number cyan default
color title-blur white blue
color title-focus white blue bold
color main-commit default default
color main-tag magenta default bold
color main-local-tag magenta default
color main-remote yellow default
color main-replace cyan default
color main-tracked yellow default bold
color main-ref cyan default
color main-head cyan default bold
color main-revgraph magenta default
color tree-head default default bold
color tree-dir yellow default normal
color tree-file default default normal
color stat-head yellow default
color stat-section cyan default
color stat-none default default
color stat-staged magenta default
color stat-unstaged magenta default
color stat-untracked magenta default
color help-keymap cyan default
color help-group blue default
color diff-stat blue default
color palette-0 magenta default
color palette-1 yellow default
color palette-2 cyan default
color palette-3 green default
color palette-4 default default
color palette-5 white default
color palette-6 red default
color graph-commit blue default