obsidian-date-in-metadata icon indicating copy to clipboard operation
obsidian-date-in-metadata copied to clipboard

Obsidian plugin allowing to insert the current date and time in YAML frontmatter on file creation (automatically insert date and time on file creation (regardless of the trigger, from a link, a keyboa...

Insert date and time in metadata automatically on file creation event

Obsidian plugin allowing to insert the current date and time in YAML frontmatter on file creation (which is otherwise not possible).

If you use the Templater plugin and you create a new note based on a template which happens to include a YAML frontmatter, the plugin updates the frontmatter automatically.

  • But how does it differ from using templates?

Using templates to insert date and time is a solution when you want to create a new file with a keyboard shortcut, but when you create a new file from a markdown link, it doesn't work (assuming you don't use folders templates like me, because tags are more convenients than folders - that's another topic...), and that's where my plugin comes in.

Buy Me A Coffee

(donate only if you can afford it, just a little is already very stimulating ;))

Demo

See how the date is inserted even after link-based-file-creation.

moi

Settings

Of course you can customize your frontmatter

image

Plugin

This plugin uses

To do

  • [x] make sure that the plugin can work directly after loading a vault (at the moment you have to wait a few seconds if you just launched obsidian, before creating a file so that the plugin can detect the file correctly) - fixed in 1.0.1