commit 64eea36b1e6fa55202a7666ad2903e074c993e14
parent 2a51d833972e7b36523040b5d512253db0730072
Author: tinmarino <tinmarino@gmail.com>
Date: Sat, 7 Dec 2019 11:32:49 -0300
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(**/*)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/autoload/vimwiki/base.vim b/autoload/vimwiki/base.vim
@@ -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