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 ++++ vimrc | 1 + 2 files changed, 5 insertions(+) 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 diff --git a/vimrc b/vimrc index 001b616..895a1f8 100644 --- a/vimrc +++ b/vimrc @@ -32,6 +32,7 @@ nnoremap ddp nnoremap R :read ! nnoremap P :r !xsel -ob set autoread +set nofoldenable " disable folding " move " nnoremap } -- cgit v1.2.3-70-g09d2