From c0e9afee5394ee91e606b5aec8acd9d7f64c1fd0 Mon Sep 17 00:00:00 2001 From: Stefan Liebl Date: Wed, 31 Jan 2024 14:19:02 +0100 Subject: [PATCH] update flog support --- vimfiles.stefan/after/ftplugin/floggraph.vim | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/vimfiles.stefan/after/ftplugin/floggraph.vim b/vimfiles.stefan/after/ftplugin/floggraph.vim index f65a4e0..f8a1212 100644 --- a/vimfiles.stefan/after/ftplugin/floggraph.vim +++ b/vimfiles.stefan/after/ftplugin/floggraph.vim @@ -2,12 +2,13 @@ " Only for testing function Flog_echo_command(command, ...) - echom flog#format_command(a:command) + echom flog#Format(a:command) endfunction -nnoremap rb :call flog#run_command('Git reset %h', 1, 1) -nnoremap rbh :call flog#run_command('Git reset --hard %h', 1, 1) +setlocal nospell -nnoremap cp :call flog#run_command('Git cherry-pick %h', 1, 1) -vnoremap cp :call flog#run_command("Git cherry-pick %(h'>)^..%(h'<)", 1, 1) -"vnoremap cp :call Flog_echo_command("Git cherry-pick %(h'>)^..%(h'<)", 1, 1) +nnoremap rb :call flog#Exec(flog#Format('Git reset %h')) +nnoremap rbh :call flog#Exec(flog#Format('Git reset --hard %h')) + +nnoremap cp :call flog#Exec(flog#Format('Git cherry-pick %h')) +vnoremap cp :call flog#Exec(flog#Format("Git cherry-pick %(h'>)^..%(h'<)")