aboutsummaryrefslogtreecommitdiffhomepage
path: root/tigrc
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2021-08-16 08:09:51 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2021-08-16 08:09:51 +0800
commit8797f603f95143ae92c153aba3943c6da59aeb02 (patch)
tree3278399d0c8c3b1babb86c9a4165d25ea28d5481 /tigrc
parent9efe33d2a5c28dec08521d5199e8e2b19da9ea9a (diff)
update
Diffstat (limited to 'tigrc')
-rw-r--r--tigrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/tigrc b/tigrc
index 2eeb6ca..5aa38c9 100644
--- a/tigrc
+++ b/tigrc
@@ -94,6 +94,7 @@ bind main 1 +sh -c "git rev-list --all --children | \
94 grep '^%(commit)' | \ 94 grep '^%(commit)' | \
95 awk '{print $2}') | \ 95 awk '{print $2}') | \
96 xsel -ib && echo first children" # useless now 96 xsel -ib && echo first children" # useless now
97bind main J @sh -c 'BRANCH=$(git branch --show-current) && git checkout %(commit) && git branch --force $BRANCH %(commit) && git checkout $BRANCH'
97 98
98# branch 99# branch
99bind main b none 100bind main b none
@@ -228,6 +229,9 @@ bind blob m >tig --follow -- %(file)
228bind status j :/^[MCADRUT?] 229bind status j :/^[MCADRUT?]
229bind status k :?^[MCADRUT?] 230bind status k :?^[MCADRUT?]
230 231
232# use vscode to edit a file
233bind status E !>code %(file)
234
231# update index 235# update index
232bind status A @git add . 236bind status A @git add .
233bind status R @git reset 237bind status R @git reset