-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tigrc
More file actions
84 lines (59 loc) · 2.36 KB
/
.tigrc
File metadata and controls
84 lines (59 loc) · 2.36 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#########################################################
## display
# main view の左端にコミットIDを表示する
set main-view = id date author commit-title:graph=yes,refs=yes
# blame view の行数表示をON、intervalを1に
set blame-view = date:default author:email-user id:yes,color line-number:yes,interval=1 text
# Pager系の行数表示をON、intervalを1に (default: line-number:no,interval=5)
set pager-view = line-number:yes,interval=1 text
set stage-view = line-number:yes,interval=1 text
set log-view = line-number:yes,interval=1 text
set blob-view = line-number:yes,interval=1 text
set diff-view = line-number:yes,interval=1 text:yes,commit-title-overflow=no
# 横分割に強制する
set vertical-split = no
# 空白無視 (status-view では表示するが diff-view では無視する) (W でトグル)
set ignore-space = at-eol
# 検索時に大文字小文字を無視する (default: false)
set ignore-case = true
# 水平分割したウィンドウの下画面サイズを % で指定(行数指定も可)
set split-view-height = 80%
# マージ diff を表示する
set diff-options = -m --first-parent
# マウスを有効にする
set mouse = true
# '+行数' の形で Editor に行番号を引数として渡すか
set editor-line-number = yes
# リフレッシュするタイミング
set refresh-mode = auto
# 差分表示に diff-highlight を使う
# エラーが出るので一旦コメントアウト
# set diff-highlight = true
#########################################################
## keybind
# disable
bind main F none
# vim keybind
bind generic g move-first-line
bind generic G move-last-line
bind main G move-last-line
bind generic E view-grep
# cherry-pick
bind main p !git cherry-pick %(commit)
bind main P !git cherry-pick %(commit)
# rebase
bind diff R !git rebase -i %(commit)
bind main R !git rebase -i %(commit)
# refresh
bind generic <Ctrl-r> refresh
bind generic <Ctrl-g> refresh
bind status + !git commit --amend
bind status D !@?git checkout HEAD -- %(file)
# checkout
bind main c !@?git checkout %(commit)
bind refs c !git checkout %(branch)
bind refs C !git checkout %(branch)
# コミットのハッシュ値をコピー
# bind main C !@zsh -c "echo -n %(commit) | pbcopy"
bind main C !@bash -c "echo -n %(commit) | pbcopy"
bind main y @bash -c "echo -n %(commit) | pbcopy"