refacotred and split

This commit is contained in:
2026-02-25 15:32:05 +01:00
parent d4ad71543d
commit caf21ab060
10 changed files with 207 additions and 157 deletions

View File

@@ -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)