fix: tag removal; keys: tag mod
This commit is contained in:
@@ -1,14 +1,3 @@
|
||||
" This function is used to autocomplete the tags in user commands.
|
||||
function s:tagList(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
|
||||
|
||||
|
||||
" Public commands
|
||||
function denote#commands#load()
|
||||
if exists('g:denote_commands_loaded') && g:denote_commands_loaded
|
||||
@@ -16,7 +5,7 @@ function denote#commands#load()
|
||||
endif
|
||||
" Register user commands
|
||||
command -nargs=* Denote call denote#notes#list(<q-args>) | lcl | lopen
|
||||
command -nargs=1 -complete=custom,s:tagList DenoteByTag call denote#notes#bytag(<q-args>) | lcl | lopen
|
||||
command -nargs=1 -complete=custom,denote#completion#tags DenoteByTag call denote#notes#bytag(<q-args>) | lcl | lopen
|
||||
command -nargs=+ DenoteGrep call denote#notes#grep(<q-args>) | lcl | lopen
|
||||
command -nargs=1 DenoteNew call denote#notes#new(<q-args>)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user