blob: 83a510e9187ecebcacb43114a85c491c2bc6482e (
plain)
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
|
# ref:
# https://qiita.com/sfus/items/063797a1dd8fdc7d032f
# https://github.com/jonas/tig/wiki/Bindings
bind generic x :toggle id
bind generic 9 !@sh -c "echo -n %(commit) | head -c7 | xclip -selection c"
bind generic g none
bind generic gg move-first-line
bind generic gr view-grep
bind generic G move-last-line
bind generic w :toggle ignore-case
bind main gG :toggle commit-title-graph
bind main G move-last-line
bind main c ?git checkout %(commit)
bind main T @git tag "%(prompt Enter tag name: )" %(commit)
bind main <Ctrl-r> !?git rebase -i %(commit)
bind main M ?git merge %(commit)
bind main P ?git push
bind main b @git checkout -b "%(prompt Enter branch name: )" %(commit)
bind main V @git log -S "%(prompt Enter search word: )"
bind main gd ?git branch -d %(branch)
bind main gD ?git branch -D %(branch)
set main-view = \
date:default \
author:abbreviated \
id \
commit-title:graph=v2,refs=true
set blame-view-file-name = no
set blame-view-line-number = yes,interval=5
bind status s ?git stash
bind status p ?git stash pop
bind status D ?rm %(file)
bind status a ?git commit --amend
bind stash D ?git stash drop %(stash)
bind stash a ?git stash apply %(stash)
bind refs d ?git branch -d %(branch)
bind refs <Esc>d ?git branch -D %(branch)
bind refs c ?git checkout %(branch)
set ignore-case = true
set line-graphics = utf-8
set refresh-mode = after-command
# set mouse = true
color diff-header black yellow
color diff-chunk white magenta
bind status <F4> !sh -c "git difftool -y \"$(git rev-parse --show-toplevel)/%(file)\""
|