changeset 143:4aedee2ce476

Allow passing extra arguments to Hglogthis and Hgvlogthis * This allows for example :Hglogthis --follow and :Hglogthis -l 5
author Johan Norberg <norberg_johan@hotmail.com>
date Mon, 29 Oct 2018 18:51:58 +0100
parents c9169233d45a
children 62af332fbf4a
files autoload/lawrencium/log.vim
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/autoload/lawrencium/log.vim	Tue Jan 10 23:52:34 2017 -0800
+++ b/autoload/lawrencium/log.vim	Mon Oct 29 18:51:58 2018 +0100
@@ -1,7 +1,7 @@
 
 function! lawrencium#log#init() abort
-    call lawrencium#add_command("Hglogthis  :call lawrencium#log#HgLog(0, '%:p')")
-    call lawrencium#add_command("Hgvlogthis :call lawrencium#log#HgLog(1, '%:p')")
+    call lawrencium#add_command("-nargs=* Hglogthis  :call lawrencium#log#HgLog(0, '%:p', <f-args>)")
+    call lawrencium#add_command("-nargs=* Hgvlogthis :call lawrencium#log#HgLog(1, '%:p', <f-args>)")
     call lawrencium#add_command("-nargs=* -complete=customlist,lawrencium#list_repo_files Hglog  :call lawrencium#log#HgLog(0, <f-args>)")
     call lawrencium#add_command("-nargs=* -complete=customlist,lawrencium#list_repo_files Hgvlog  :call lawrencium#log#HgLog(1, <f-args>)")