Default template for new note (cltr-n, click to non-existing note)

+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.ctime Date Created time
file.ext String File extension
file.file File File object, only usable in specific functions
file.folder String Path of the file folder
file.mtime Date Modified time
file.name String File name
file.path String Path of the file
file.size Number File size
file.links List List of all internal links in the note, including frontmatter

https://help.obsidian.md/bases/syntax#File%20properties

+1 for this to be a core feature please :slight_smile:

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.


:backhand_index_pointing_up:t4:


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.. :heart: