-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tigrc
24 lines (19 loc) · 829 Bytes
/
.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
set main-view = id date author commit-title:graph=yes,refs=yes
set main-view-date = custom
set main-view-date-format = "%Y-%m-%d %H:%M"
set refs-view = id date author ref commit-title
set refs-view-date = custom
set refs-view-date-format = "%Y-%m-%d %H:%M"
# Page down|up like vim
bind generic <Ctrl-f> scroll-page-down
bind generic <Ctrl-b> scroll-page-up
# See: .config/gh/config.yml
bind generic P @gh openpr %(commit)
# TODO: awaiting "gh browse" command supports page of commit
bind generic O @sh -c "open `gh browse -n`/commit/%(commit)"
bind generic y @sh -c "printf %(commit) | pbcopy"
# TODO: tig開いたままghコマンド結果に移れればヤンクする必要なくなる
bind generic Y @sh -c "printf `gh searchpr %(commit)` | pbcopy"
bind diff ; view-next
bind diff l scroll-right
bind diff h scroll-left