vimwiki

Personal wiki for vim
git clone https://github.com/vimwiki/vimwiki.git
Log | Files | Refs | README | LICENSE

commit 3ecf9c544a47d8f93aa65075ef1010b97c3beffc
parent 4a7d9a286f9f44a23d27afb48dcaff124e33c584
Author: s <sebastian.glinski@gmail.com>
Date:   Mon, 15 May 2017 21:33:54 +0200

set additional custom arguments in g:vimwiki_list
(custom_wiki2html_args) which will then be passed to the appropriate
custom_wiki2html script.

Diffstat:
Mautoload/vimwiki/html.vim | 9+++++----
Mdoc/vimwiki.txt | 5++++-
2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/autoload/vimwiki/html.vim b/autoload/vimwiki/html.vim @@ -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) "{{{ diff --git a/doc/vimwiki.txt b/doc/vimwiki.txt @@ -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: