Support autocompletion of link argument for VimwikiGoto command

This commit is contained in:
Ivan Tishchenko
2014-11-07 00:02:37 +03:00
parent 395cfec299
commit f7df798b25
2 changed files with 13 additions and 1 deletions

View File

@ -1804,6 +1804,17 @@ endfunction "}}}
" }}}
" Command completion functions {{{
" vimwiki#base#complete_links
function! vimwiki#base#complete_links(ArgLead, CmdLine, CursorPos) abort " {{{
" We can safely ignore args if we use -custom=complete option, Vim engine
" will do the job of filtering.
return vimwiki#base#get_globlinks()
endfunction " }}}
"}}}
" -------------------------------------------------------------------------
" Load syntax-specific Wiki functionality
for s:syn in vimwiki#base#get_known_syntaxes()