improve flog cp mappings
This commit is contained in:
parent
582327e521
commit
7318cef45a
@ -1,7 +1,13 @@
|
|||||||
" settings for flog
|
" settings for flog
|
||||||
|
|
||||||
nmap <buffer> <silent> rb :call flog#run_command('Git reset %h', 1, 1)<CR>
|
" Only for testing
|
||||||
nmap <buffer> <silent> rbh :call flog#run_command('Git reset --hard %h', 1, 1)<CR>
|
function Flog_echo_command(command, ...)
|
||||||
|
echom flog#format_command(a:command)
|
||||||
|
endfunction
|
||||||
|
|
||||||
nmap <buffer> <silent> cp :call flog#run_command('Git cherry-pick %h', 1, 1)<CR>
|
nnoremap <buffer> <silent> rb :call flog#run_command('Git reset %h', 1, 1)<CR>
|
||||||
"nmap <buffer> <silent> d :call flog#run_command('Git cherry-pick %h', 1, 1)<CR>
|
nnoremap <buffer> <silent> rbh :call flog#run_command('Git reset --hard %h', 1, 1)<CR>
|
||||||
|
|
||||||
|
nnoremap <buffer> <silent> cp :call flog#run_command('Git cherry-pick %h', 1, 1)<CR>
|
||||||
|
vnoremap <buffer> <silent> cp :<C-U>call flog#run_command("Git cherry-pick %(h'>)^..%(h'<)", 1, 1)<CR>
|
||||||
|
"vnoremap <buffer> <silent> cp :<C-U>call Flog_echo_command("Git cherry-pick %(h'>)^..%(h'<)", 1, 1)<CR>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user