From 220585aa8fef55422d6bcef7eb9a379fb8e8464b Mon Sep 17 00:00:00 2001 From: MosaicMan <> Date: Sun, 7 Nov 2021 18:58:22 -0500 Subject: [PATCH] Use wiki_index_name global to set a custom index page name. --- autoload/wiki.vim | 3 ++- doc/wiki.txt | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/autoload/wiki.vim b/autoload/wiki.vim index 1ec55f56..b4113236 100644 --- a/autoload/wiki.vim +++ b/autoload/wiki.vim @@ -54,7 +54,8 @@ endfunction " }}}1 function! wiki#goto_index() abort " {{{1 - call wiki#url#parse('wiki:/index').follow() + let l:index_url = printf('wiki:/%s', g:wiki_index_name) + call wiki#url#parse(l:index_url).follow() endfunction " }}}1 diff --git a/doc/wiki.txt b/doc/wiki.txt index f10c5e95..37982de2 100644 --- a/doc/wiki.txt +++ b/doc/wiki.txt @@ -426,6 +426,12 @@ OPTIONS *wiki-config-options* Default: 1 +g:wiki_index_name + A string with the index page name for the wiki. The value should not include + the file extension. + + Default: 'index' + *g:wiki_journal* A dictionary for configuring the journal/diary feature. Available options are: