diff --git a/autoload/denote/commands.vim b/autoload/denote/commands.vim index e0a38a9..90d30fe 100644 --- a/autoload/denote/commands.vim +++ b/autoload/denote/commands.vim @@ -23,7 +23,7 @@ function denote#commands#load() " Register auto commands autocmd BufReadPost quickfix call denote#ft#qf() let l:aupat = map(copy(g:denote_note_file_extensions), {_, v -> '*.' .. v})->join(',') - exe 'autocmd BufReadPost ' .. l:aupat .. ' call denote#ft#denote()' + exe 'autocmd BufReadPost,BufNewFile ' .. l:aupat .. ' call denote#ft#denote()' " Useful key mappings " nnoremap DenoteList :DenoteSearch:lclose:lopen:resize 20 diff --git a/autoload/denote/completion.vim b/autoload/denote/completion.vim index 4f89cfb..6b2e748 100644 --- a/autoload/denote/completion.vim +++ b/autoload/denote/completion.vim @@ -28,7 +28,6 @@ function s:suggestions(base) let res = [] for filename in flist let noteId = denote#meta#noteIdFromFile(filename) - echom "Gote noteId: " .. noteId let noteTitle = denote#meta#noteTitleFromFile(filename) if noteId == v:false || (noteId !~ '^' .. prefix && noteTitle !~ prefix) continue