Skip to content

Commit

Permalink
Use wiki_index_name global to set a custom index page name.
Browse files Browse the repository at this point in the history
  • Loading branch information
MosaicMan committed Nov 7, 2021
1 parent 7557464 commit 220585a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoload/wiki.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions doc/wiki.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 220585a

Please sign in to comment.