Closed adamjt closed 4 years ago
Hi, sorry for the late reply. I think this is the same issue as this one. It should be fixed now.
Thanks! It works better now, but it's appending my template to the default, rather than replacing. I'm gonna see if I can figure it out later today and try to open a PR. If I can't, I'll follow up here!
Yes, the default headers are always applied, they are independent on the template. Maybe we can introduce a option to disable the default headers?
Oh, sorry for the confusion! I think that would be neat, I keep the pages pretty simple.
It is possible to disable front matter now, using disable_front_matter
option:
let g:zettel_options = [{"template" : "~/scratchbox/vimwiki/mdtemplate.tpl", "disable_front_matter": 1}]
Thanks so much! Can confirm it works great.
.vimrc
I'm using the .txt extension here so I can easily view the files on my phone using the Synology Drive app. The files themselves are in vimwiki syntax.
default.tpl
When using
:ZettelNew Something
a file namedSomething.txt
is created, but the contents are using the default template: