michal-h21 / vim-zettel

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

Feature Request: No YAML Frontmatter #90

Open justinmoon opened 3 years ago

justinmoon commented 3 years ago

It would be nice if I could remove the YAML frontmatter in notes and have vim-zettel treat a # heading on the first line as a title. In particular, I think this might make searching a little easier because the title sections are kind of visually noisy.

xmalbertox commented 2 years ago

This is already possible, implemented after issue #67, just add disable_font_matter=1 to your zettel_options, e.g.:

let g:zettel_options = [{"disable_font_matter": 1}]
michal-h21 commented 2 years ago

As @xmalbertox said, you can disable front matter by setting disable_front_matter option:

 let g:zettel_options = [{"disable_front_matter": 1}]

The command that detects title now also supports the first header, so there is no need to use the YAML frontmatter if you don't want to.