obsidian.nvim icon indicating copy to clipboard operation
obsidian.nvim copied to clipboard

Default template

Open rochana-atapattu opened this issue 1 year ago • 5 comments

📚 The doc issue

There is a default template added when you run :ObsidianNew which is not properly documented and different from apps behavior.

Screenshot 2024-01-12 at 19 48 45

Suggest a potential alternative/fix

additional information about this would be nice

rochana-atapattu avatar Jan 12 '24 14:01 rochana-atapattu

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

bcl1713 avatar Jan 23 '24 06:01 bcl1713

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.

epwalsh avatar Jan 27 '24 00:01 epwalsh

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.

ajmichels avatar Jun 20 '24 22:06 ajmichels

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.

epwalsh avatar Jun 21 '24 21:06 epwalsh

Has happening but then stopped so it must have been something else. Sorry for the false alarm.

ajmichels avatar Jun 22 '24 01:06 ajmichels