14 lines
608 B
VimL
14 lines
608 B
VimL
" Public commands
|
|
function denote#commands#load()
|
|
if exists('g:denote_commands_loaded') && g:denote_commands_loaded
|
|
return
|
|
endif
|
|
let g:denote_commands_loaded = 1
|
|
" Register user commands
|
|
command -nargs=* Denote call denote#notes#list(<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>)
|
|
command -nargs=1 -complete=file DenoteCopy call denote#notes#copy(<q-args>)
|
|
endfunction
|