obsidian.nvim
obsidian.nvim copied to clipboard
Default template
📚 The doc issue
There is a default template added when you run :ObsidianNew which is not properly documented and different from apps behavior.
Suggest a potential alternative/fix
additional information about this would be nice
This isn't a template per se, as much as its the formatter adding the yaml frontmatter to your file which you can control with the configuration.
disable_frontmatter = true
Yes @bcl1713 is right, although I can understand the confusion. That said, I've been considering adding support for templates that include frontmatter, which would ultimately allow users to specify their own default template for new notes.
Having more control over the front matter would be much appreciated.
Right now it is either use frontmatter the way the plugin wants you to or when it is disabled the plugin automatically removes it. Neither is ideal. I mean I want to use frontmatter but I want to choose when I use and and what properties are in it.
when it is disabled the plugin automatically removes it.
Obsidian.nvim shouldn't be removing existing frontmatter when you have disable_frontmatter=true
. If this is happening to you please open a bug report and I'll look into it.
Has happening but then stopped so it must have been something else. Sorry for the false alarm.