michal-h21 / vim-zettel

VimWiki addon for managing notes according to Zettelkasten method
MIT License
557 stars 73 forks source link

Disable default header #67

Closed victorkristof closed 3 years ago

victorkristof commented 3 years ago

Hi there,

Thanks for the awesome plugin! I was wondering whether you could add an option to disable the default header? I'd like to keep my notes rather simple.

Thank you!

[EDIT]: I found that this has already been mentioned is this issue!

michal-h21 commented 3 years ago

This was on my plan, but never managed to do it. It is now possible to disable front matter using disable_front_matter option:

  let g:zettel_options = [{"template" :  "~/scratchbox/vimwiki/mdtemplate.tpl", "disable_front_matter": 1}]
victorkristof commented 3 years ago

That's super nice!

One little catch, when disabling the front matter and using a template, the first line of a new note is blank. The template gets pasted on the second line.

Easy to fix?

michal-h21 commented 3 years ago

Yes, fortunately.

victorkristof commented 3 years ago

Awesome, works perfectly! Thanks!