-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tigrc
70 lines (63 loc) · 2.52 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
#--------------------------------------------------------------
# tig settings
#--------------------------------------------------------------
set tab-size = 2
set ignore-case = true
set split-view-width = 80%
set split-view-height = 80%
set diff-options = -m --first-parent
set mouse = true
set editor-line-number = yes
color cursor black white normal
set main-view = date:relative-compact,local=yes id:yes author commit-title:graph=v2,refs=yes,overflow=false
set blame-view = date:relative-compact,local=yes id:yes author line-number:yes,interval=1 text
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 diff-highlight = false
#--------------------------------------------------------------
# reload
#--------------------------------------------------------------
# set refresh-mode = auto
#set refresh-mode = after-command
#set refresh-mode = periodic
set refresh-interval = 1
#--------------------------------------------------------------
# key bind
#--------------------------------------------------------------
# リポジトリのGitHubを表示
bind generic G @hub browse
# 現在のブランチへpush
bind main P ?!git push origin %(repo:head)
# 選択中のコミットをgithubで開く(main)
bind main G @hub browse -- commit/%(commit)
# 選択中のコミットをgithubで開く(diff)
bind diff G @hub browse -- commit/%(commit)
# ブランチ削除
bind refs D ?@git branch -d %(branch)
# fetch -a
bind refs F ?@git fetch -a
# 現在のブランチをpull
bind refs L ?!git pull %(remote)
# 現在のブランチに選択中のブランチをマージする
bind refs M ?!git merge %(branch)
# 現在のブランチを選択中のブランチ上にリベースする
bind refs R ?!git rebase %(branch)
# 現在のブランチから新しいブランチを作成
bind refs N ?@git branch %(prompt)
# 選択したbranchのcompare画面
bind refs G !hub compare %(branch)
# 特定ファイルだけ元に戻す
bind status B ?@git checkout %(file)
# 全てをadd
bind status A @git add -A
# 全てのaddの取り消し
bind status R @git reset HEAD
# untracked fileを削除できるようにする
bind status D ?@rm %(file)
# commti --ammend
bind status + ?!git commit --amend
# stash
bind status S ?@git stash save -u %(prompt)