aboutsummaryrefslogtreecommitdiffhomepage
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
parent9efe33d2a5c28dec08521d5199e8e2b19da9ea9a (diff)
update
-rw-r--r--tigrc4
-rw-r--r--vimrc1
2 files changed, 5 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
diff --git a/vimrc b/vimrc
index 001b616..895a1f8 100644
--- a/vimrc
+++ b/vimrc
@@ -32,6 +32,7 @@ nnoremap <C-J> ddp
32nnoremap <leader>R :read ! 32nnoremap <leader>R :read !
33nnoremap <leader>P :r !xsel -ob<CR> 33nnoremap <leader>P :r !xsel -ob<CR>
34set autoread 34set autoread
35set nofoldenable " disable folding
35 36
36" move 37" move
37" nnoremap <Tab> } 38" nnoremap <Tab> }