fix: tag removal; keys: tag mod
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user