Fix: get_wikilinks arguments: add pattern
This commit is contained in:
@ -529,6 +529,7 @@ endfunction
|
||||
" files in the given wiki.
|
||||
" If the given wiki number is negative, the diary of the current wiki is used.
|
||||
" If also_absolute_links is nonzero, also return links of the form /file
|
||||
" If pattern is not '', only filepaths matching pattern will be considered
|
||||
function! vimwiki#base#get_wikilinks(wiki_nr, also_absolute_links, pattern) abort
|
||||
let files = vimwiki#base#find_files(a:wiki_nr, 0, a:pattern)
|
||||
if a:wiki_nr == vimwiki#vars#get_bufferlocal('wiki_nr')
|
||||
|
@ -917,7 +917,7 @@ function! vimwiki#vars#get_bufferlocal(key, ...) abort
|
||||
call setbufvar(buffer, 'vimwiki_invsubdir', vimwiki#base#invsubdir(subdir))
|
||||
elseif a:key ==# 'existing_wikifiles'
|
||||
call setbufvar(buffer, 'vimwiki_existing_wikifiles',
|
||||
\ vimwiki#base#get_wikilinks(vimwiki#vars#get_bufferlocal('wiki_nr'), 1))
|
||||
\ vimwiki#base#get_wikilinks(vimwiki#vars#get_bufferlocal('wiki_nr'), 1, ''))
|
||||
elseif a:key ==# 'existing_wikidirs'
|
||||
call setbufvar(buffer, 'vimwiki_existing_wikidirs',
|
||||
\ vimwiki#base#get_wiki_directories(vimwiki#vars#get_bufferlocal('wiki_nr')))
|
||||
|
Reference in New Issue
Block a user