From 8797f603f95143ae92c153aba3943c6da59aeb02 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Mon, 16 Aug 2021 08:09:51 +0800 Subject: update --- tigrc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tigrc') 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 | \ grep '^%(commit)' | \ awk '{print $2}') | \ xsel -ib && echo first children" # useless now +bind main J @sh -c 'BRANCH=$(git branch --show-current) && git checkout %(commit) && git branch --force $BRANCH %(commit) && git checkout $BRANCH' # branch bind main b none @@ -228,6 +229,9 @@ bind blob m >tig --follow -- %(file) bind status j :/^[MCADRUT?] bind status k :?^[MCADRUT?] +# use vscode to edit a file +bind status E !>code %(file) + # update index bind status A @git add . bind status R @git reset -- cgit v1.2.3-70-g09d2