feat: open non-note files using "open"
This commit is contained in:
@@ -246,7 +246,7 @@ function denote#notes#copy(origfile)
|
||||
" Write front matter, if this is supported
|
||||
if index(g:denote_note_file_extensions, l:ext) >= 0
|
||||
call denote#loclist#jumptowindow()
|
||||
exe 'edit ' .. l:filename
|
||||
exe 'edit ' .. fnameescape(l:filename)
|
||||
call appendbufline(l:filename, 0, libdenote#fm_gen(l:ext, l:identifier, l:title), [], g:denote_fm_md_type)
|
||||
exe 'w'
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user