feat: reload key
This commit is contained in:
@@ -4,7 +4,8 @@ function denote#notes#list(search)
|
||||
let l:s = substitute(' ' .. a:search .. ' ', ' ', '*', 'g')
|
||||
let l:files = glob(g:denote_directory .. '/' .. l:s, 0, v:true)
|
||||
let l:title = 'Denote notes search:' .. a:search
|
||||
call denote#loclist#fill(l:title, l:files)
|
||||
let l:Gfun = function('denote#notes#list', [a:search])
|
||||
call denote#loclist#fill(l:title, l:files, l:Gfun)
|
||||
endfunction
|
||||
|
||||
" Put all notes of the given tag to the location list. The tag argument is
|
||||
@@ -12,7 +13,8 @@ endfunction
|
||||
function denote#notes#bytag(tag)
|
||||
let l:files = glob(g:denote_directory .. '/*_' .. a:tag .. '*', 0, v:true)->filter('v:val->split("/")[-1] =~ "_' .. a:tag .. '\\(==\\|@@\\|__\\|_\\|\\.\\)"')
|
||||
let l:title = 'Denote notes: ' .. a:tag
|
||||
call denote#loclist#fill(l:title, l:files)
|
||||
let l:Gfun = function('denote#notes#bytag', [a:tag])
|
||||
call denote#loclist#fill(l:title, l:files, l:Gfun)
|
||||
endfunction
|
||||
|
||||
" Search in denote notes
|
||||
@@ -20,7 +22,8 @@ function denote#notes#grep(re)
|
||||
let l:title = 'Grep results for: ' .. a:re
|
||||
let l:fpat=map(copy(g:denote_note_file_extensions), {_, e -> g:denote_directory .. '/*.' .. e})->join()
|
||||
execute 'silent! lvimgrep ' .. a:re .. ' ' .. l:fpat
|
||||
call denote#loclist#setgrep(l:title)
|
||||
let l:Gfun = function('denote#notes#grep', [a:re])
|
||||
call denote#loclist#setgrep(l:title, l:Gfun)
|
||||
endfunction
|
||||
|
||||
" This creates a new denote entry with the given title and of the given
|
||||
|
||||
Reference in New Issue
Block a user