diff options
-rw-r--r-- | tigrc | 4 | ||||
-rw-r--r-- | vimrc | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -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 |
97 | bind 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 |
99 | bind main b none | 100 | bind main b none |
@@ -228,6 +229,9 @@ bind blob m >tig --follow -- %(file) | |||
228 | bind status j :/^[MCADRUT?] | 229 | bind status j :/^[MCADRUT?] |
229 | bind status k :?^[MCADRUT?] | 230 | bind status k :?^[MCADRUT?] |
230 | 231 | ||
232 | # use vscode to edit a file | ||
233 | bind status E !>code %(file) | ||
234 | |||
231 | # update index | 235 | # update index |
232 | bind status A @git add . | 236 | bind status A @git add . |
233 | bind status R @git reset | 237 | bind status R @git reset |
@@ -32,6 +32,7 @@ nnoremap <C-J> ddp | |||
32 | nnoremap <leader>R :read ! | 32 | nnoremap <leader>R :read ! |
33 | nnoremap <leader>P :r !xsel -ob<CR> | 33 | nnoremap <leader>P :r !xsel -ob<CR> |
34 | set autoread | 34 | set autoread |
35 | set nofoldenable " disable folding | ||
35 | 36 | ||
36 | " move | 37 | " move |
37 | " nnoremap <Tab> } | 38 | " nnoremap <Tab> } |