+1 for this
Please, Obsidian Gods. Let me inject a basic YAML template into every new note and my life is yours.
Note that there are implicit properties already:
File properties
File properties refer to the file currently being tested or evaluated. File properties are available for all file types, including attachments.
For example, a filter
file.ext == "md"will be true for all Markdown files and false otherwise.
Property Type Description file.ctimeDate Created time file.extString File extension file.fileFile File object, only usable in specific functions file.folderString Path of the file folder file.mtimeDate Modified time file.nameString File name file.pathString Path of the file file.sizeNumber File size file.linksList List of all internal links in the note, including frontmatter
+1 for this to be a core feature please ![]()
Related request:
Genuinely surprised that this doesn’t exist by default! Feels like such a natural thing.
Indeed.
As for now, download the community plugin QuickAdd and create a template workflow, then re-assign the default “new-note” hotkey to use your new workflow instead
lol, they probably have too much on their plate but I got it.
![]()
And it makes it better in terms of security too, given the recent GitHub data breach, it makes sense to reduce external plugins usage as much as possible thus being able to rely on core is crucial.
For anyone with similar basic needs – stable date fields for all new notes – here are a couple other plugin approaches I’ve used:
Update modified date plugin
The Update modified date plugin “does not use the filesystem modified time. The frontmatter will only update when you actually work on a file inside Obsidian.” And it can also add a created date property that works the same way.
It takes a moment to kick in and add the properties once you start a new note, but I don’t find it makes any difference – it takes me at least two moments to write a note.
Linter plugin
Linter, among all the other stuff it does, can add a Date Created and Date Modified. You can specify that the frontmatter remains the “source of truth” – so in that way it acts just like the Update Modified Date plugin.
Linter only runs on file save or focus switch, but a quick CTRL+S will make the new properties appear. (You might even develop a CTRL+(T, N, S) habit for starting a new note.)
+1 … still waiting, still having to manually add a template on every new note.
+1.. ![]()