Keven B.541 downloadsAutomatically writes the current date/time to a frontmatter property every time a note is created or saved.
A lightweight plugin that keeps a "last modified" timestamp in the frontmatter of your Markdown notes. Every time you edit a note, Simple Timestamp writes the current date and time to a property of your choice - no commands, no hotkeys, no manual work.
git pull, other plugins writing to files, and link updates after a rename.updated).YYYY-MM-DDTHH:mm, is the format of Obsidian's "Date & time" property type, so Properties and Dataview read it as a date. A live preview is shown in settings.excalidraw-plugin frontmatter key) and skipped automatically; their bodies are JSON, not prose, and shouldn't be timestamped on every stroke.modify event, so it never restamps itself.| Setting | Default | Description |
|---|---|---|
| Property name | updated |
The frontmatter key that will be written whenever you edit a note. Reserved JavaScript names (__proto__, constructor, prototype) are rejected. |
| Date format | YYYY-MM-DDTHH:mm |
Any moment.js format string. A live preview updates as you type. |
| Create property if missing | Off | When off, only notes that already contain the property are stamped. When on, the property is added to every Markdown file you edit. |
| Excluded folders | (empty) | Files inside these folders (and their subfolders) are never stamped. Paths are case-sensitive. |
| Autofill from template plugins | - | Reads templates.json (core Templates) and Templater's data.json and merges their template folders into the exclusion list. |
| Minimum minutes between stamps | 1 |
Cooldown per file. 0 disables the cooldown. |
The plugin listens for the workspace's editor-change event and the vault's modify event:
editor-change when it reloads an open note after an outside write, and those reloads don't count.modify event), the mark is consumed. A modify event for a note without a mark - sync, git, another plugin - is ignored.processFrontMatter API.modify event it just triggered is recognized as its own and ignored.All frontmatter writes go through app.fileManager.processFrontMatter, which is the supported Obsidian API for safely editing frontmatter without disturbing the rest of the file.
Because only editor changes count, edits made without an editor - for example in the File properties sidebar or a Bases table - don't update the timestamp. Editing properties inside the note itself does.
main.js, manifest.json, and styles.css from the latest release.<your vault>/.obsidian/plugins/simple-timestamp/.The build produces main.js at the repository root, alongside manifest.json and styles.css - the three files Obsidian needs.
Push a tag that matches the version in manifest.json exactly (for example 1.1.0, no v prefix). The release workflow builds the plugin and creates a draft GitHub release with main.js, manifest.json, and styles.css attached; publish the draft once you've checked it.
manifest.json).isDesktopOnly: false).MIT - see LICENSE.