Mercurial > vim-lawrencium
comparison autoload/lawrencium/log.vim @ 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 | 4d5f4233b04e |
children | 62af332fbf4a |
comparison
equal
deleted
inserted
replaced
142:c9169233d45a | 143:4aedee2ce476 |
---|---|
1 | 1 |
2 function! lawrencium#log#init() abort | 2 function! lawrencium#log#init() abort |
3 call lawrencium#add_command("Hglogthis :call lawrencium#log#HgLog(0, '%:p')") | 3 call lawrencium#add_command("-nargs=* Hglogthis :call lawrencium#log#HgLog(0, '%:p', <f-args>)") |
4 call lawrencium#add_command("Hgvlogthis :call lawrencium#log#HgLog(1, '%:p')") | 4 call lawrencium#add_command("-nargs=* Hgvlogthis :call lawrencium#log#HgLog(1, '%:p', <f-args>)") |
5 call lawrencium#add_command("-nargs=* -complete=customlist,lawrencium#list_repo_files Hglog :call lawrencium#log#HgLog(0, <f-args>)") | 5 call lawrencium#add_command("-nargs=* -complete=customlist,lawrencium#list_repo_files Hglog :call lawrencium#log#HgLog(0, <f-args>)") |
6 call lawrencium#add_command("-nargs=* -complete=customlist,lawrencium#list_repo_files Hgvlog :call lawrencium#log#HgLog(1, <f-args>)") | 6 call lawrencium#add_command("-nargs=* -complete=customlist,lawrencium#list_repo_files Hgvlog :call lawrencium#log#HgLog(1, <f-args>)") |
7 | 7 |
8 call lawrencium#add_reader("log", "lawrencium#log#read") | 8 call lawrencium#add_reader("log", "lawrencium#log#read") |
9 call lawrencium#add_reader("logpatch", "lawrencium#log#read_patch") | 9 call lawrencium#add_reader("logpatch", "lawrencium#log#read_patch") |