-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tigrc
More file actions
52 lines (43 loc) · 1.58 KB
/
.tigrc
File metadata and controls
52 lines (43 loc) · 1.58 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
# view settings
set main-view = id:yes date:default,local=yes author commit-title:graph=yes,refs=yes,overflow=false
set blame-view = date:default id:yes,color line-number:yes,interval=1 text
set pager-view = text
set stage-view = text
set log-view = text
set blob-view = text
set diff-view = text:yes,commit-title-overflow=no
set tab-size = 2
set ignore-case = true
set split-view-width = 80%
set split-view-height = 80%
# Diff view policy:
# - Prefer clean inline highlights via diff-highlight (no {+ +} markers).
# - Keep first-parent history for easier review on merge-heavy repos.
set diff-options = -m --first-parent
set word-diff = false
set diff-highlight = true
# Match GitHub's "Hide whitespace changes" behavior by default.
set ignore-space = some
set refresh-mode = auto
set mouse = true
set mouse-scroll = 1
color cursor black white bold
# Force color-based inline emphasis (instead of relying on italic only).
color diff-add-highlight black green
color diff-del-highlight black red
# key bindings
bind generic C !git commit
bind generic A ?git commit --amend
bind generic F !sh -c "echo 'Fetching %(remote)...' && git fetch %(remote)"
bind generic U !sh -c "echo 'Pulling...' && git pull"
bind generic P !sh -c "echo 'Pushing to %(remote)/%(repo:head)...' && git push %(remote) %(repo:head)"
bind generic S !git switch -c "%(prompt Enter new branch name: )"
bind generic g move-first-line
bind generic G move-last-line
bind status D ?@rm %(file)
# for large repos
#
# git's default is reverse chronological order
set commit-order = default
# limit number of commits
set main-options = -n 500