Feature: VimwikiGoto completion get also link of files nested in directories

Before: VimwikiGoto <Tab> -> completed only files in current dir
After: complete also files in nested dirs
Changes: glob(*) -> glob(**/*)
This commit is contained in:
tinmarino 2019-12-07 11:32:49 -03:00
parent 2a51d83397
commit 64eea36b1e
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,7 @@ function! vimwiki#base#get_globlinks_escaped() abort
let orig_pwd = getcwd()
lcd! %:h
" all path are relative to the current file's location
let globlinks = glob('*'.vimwiki#vars#get_wikilocal('ext'), 1)."\n"
let globlinks = glob('**/*'.vimwiki#vars#get_wikilocal('ext'), 1)."\n"
" remove extensions
let globlinks = substitute(globlinks, '\'.vimwiki#vars#get_wikilocal('ext').'\ze\n', '', 'g')
" restore the original working directory