Fix: #913: VimwikiGoto completion aafter <CR> [in input() prompt]

Issue #913:
        :VimwikiGoto tab completion only works when written in-line, not when called from \wn #913
        PR #785 adds completion to :VimwikiGoto, however it works only when you try to type the filename after the command, e.g.
This commit is contained in:
Tinmarino
2020-07-21 10:20:06 -04:00
parent 2f20c617d6
commit 75a9232fd5
3 changed files with 30 additions and 12 deletions

View File

@ -455,7 +455,9 @@ endfunction
" Jump to other wikifile, specified on command mode
" Called: by command VimwikiGoto (Exported)
function! vimwiki#base#goto(...) abort
let key = a:0 > 0 ? a:1 : input('Enter name: ')
let key = a:0 > 0 ? a:1 : input('Enter name: ', '',
\ 'customlist,vimwiki#base#complete_links_escaped')
let anchor = a:0 > 1 ? a:2 : ''
" Save current file pos