copy files to denote directory
This commit is contained in:
@@ -85,3 +85,9 @@ function denote#frontmatter#setTags(filename, tags)
|
||||
call map(l:frontmatter, { _, v -> v =~ '^\(#+file\)\?tags' ? l:tagline : v})
|
||||
call setbufline(a:filename, 1, l:frontmatter)
|
||||
endfunction
|
||||
|
||||
" Prepend frontmatter to file
|
||||
function denote#frontmatter#prepend(filename, id, title, tags=[])
|
||||
let l:frontmatter = denote#frontmatter#new(fnamemodify(a:filename, ':t'), a:id, a:title, a:tags)
|
||||
call appendbufline(a:filename, 0, l:frontmatter)
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user