From 64eea36b1e6fa55202a7666ad2903e074c993e14 Mon Sep 17 00:00:00 2001 From: tinmarino Date: Sat, 7 Dec 2019 11:32:49 -0300 Subject: [PATCH] Feature: VimwikiGoto completion get also link of files nested in directories Before: VimwikiGoto -> completed only files in current dir After: complete also files in nested dirs Changes: glob(*) -> glob(**/*) --- autoload/vimwiki/base.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/vimwiki/base.vim b/autoload/vimwiki/base.vim index 0e895b0..b0bb494 100644 --- 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