set additional custom arguments in g:vimwiki_list

(custom_wiki2html_args) which will then be passed to the appropriate
custom_wiki2html script.
This commit is contained in:
s 2017-05-15 21:33:54 +02:00 committed by EinfachToll
parent 4a7d9a286f
commit 3ecf9c544a
2 changed files with 9 additions and 5 deletions

View File

@ -1391,10 +1391,11 @@ function! vimwiki#html#CustomWiki2HTML(path, wikifile, force) "{{{
\ shellescape(a:path). ' '.
\ shellescape(a:wikifile). ' '.
\ shellescape(s:default_CSS_full_name(a:path)). ' '.
\ (len(VimwikiGet('template_path')) > 1 ? shellescape(expand(VimwikiGet('template_path'))) : '-'). ' '.
\ (len(VimwikiGet('template_default')) > 0 ? VimwikiGet('template_default') : '-'). ' '.
\ (len(VimwikiGet('template_ext')) > 0 ? VimwikiGet('template_ext') : '-'). ' '.
\ (len(VimwikiGet('subdir')) > 0 ? shellescape(s:root_path(VimwikiGet('subdir'))) : '-'))
\ (len(VimwikiGet('template_path')) > 1 ? shellescape(expand(VimwikiGet('template_path'))) : '-'). ' '.
\ (len(VimwikiGet('template_default')) > 0 ? VimwikiGet('template_default') : '-'). ' '.
\ (len(VimwikiGet('template_ext')) > 0 ? VimwikiGet('template_ext') : '-'). ' '.
\ (len(VimwikiGet('subdir')) > 0 ? shellescape(s:root_path(VimwikiGet('subdir'))) : '-'). ' '.
\ (len(VimwikiGet('custom_wiki2html_args')) > 0 ? VimwikiGet('custom_wiki2html_args') : '-'))
endfunction " }}}
function! s:convert_file(path_html, wikifile) "{{{

View File

@ -2161,8 +2161,11 @@ The following arguments, in this order, are passed to the script:
10. root_path : a count of ../ for pages buried in subdirs
For example, if you have wikilink [[dir1/dir2/dir3/my page in a subdir]]
then this argument is '../../../'.
11. custom_args : custom arguments (can be defined in g:vimwiki_list as
'custom_wiki2html_args' parameter) that will be passed to the conversion
script.
Options 7-10 are experimental and may change in the future. If any of these
Options 7-11 are experimental and may change in the future. If any of these
parameters is empty, a hyphen "-" is passed to the script in its place.
For an example and further instructions, refer to the following script: