refacotred and split
This commit is contained in:
@@ -24,7 +24,7 @@ endfunction
|
||||
" Return completion items given by the base
|
||||
function s:suggestions(base)
|
||||
let prefix = a:base->matchstr('^denote:\zs.*$')
|
||||
let flist = glob(t:denote_directory .. (prefix ? "*" .. prefix .. "*" : "*"), 0, v:true)
|
||||
let flist = glob(g:denote_directory .. "/" .. (prefix ? "*" .. prefix .. "*" : "*"), 0, v:true)
|
||||
let res = []
|
||||
for filename in flist
|
||||
let noteId = denote#meta#noteIdFromFile(filename)
|
||||
|
||||
Reference in New Issue
Block a user