Skip to content
This repository has been archived by the owner on Feb 19, 2023. It is now read-only.

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 keyboard shortcut, or whatever…).

License

salmund/obsidian-date-in-metadata

Repository files navigation

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

  • 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

About

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 keyboard shortcut, or whatever…).

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published