fix: tag removal; keys: tag mod

This commit is contained in:
2026-02-28 14:31:00 +01:00
parent 5d631a5506
commit 4fb6e977ff
4 changed files with 17 additions and 15 deletions

View File

@@ -47,3 +47,13 @@ endfunction
function denote#completion#get(findstart, base)
return a:findstart == 1 ? s:column() : s:suggestions(a:base)
endfunction
" Completion function for denote tags
function denote#completion#tags(ArgLead, cmdLine, CursorPos)
let l:files=glob(g:denote_directory .. '/*', 0, v:true)
let l:tags=[]
for f in l:files
let l:tags=extend(l:tags, denote#meta#noteTagsFromFile(f))
endfor
return uniq(sort(l:tags))->join("\n")
endfunction