akymaster24 downloadsShows the photos and videos from a folder on your disk inside your daily notes, matched by the real capture date stored in the file's metadata. Nothing is copied into the vault.
Shows the photos and videos from a folder on your computer inside your daily notes, matched by the date the media was actually captured. Files are only referenced from where they live, nothing is copied into the vault.
Requires: Obsidian desktop 1.4+ and the core Daily notes plugin (or Periodic Notes' daily notes).
npm install
npm run build
Copy main.js, manifest.json and styles.css into <your vault>/.obsidian/plugins/daily-media-gallery/,
then enable Daily Media Gallery under Settings → Community plugins.
(npm run dev rebuilds on every change while developing.)
Settings → Daily Media Gallery → Add a folder (Browse… or paste a path such as D:\Photos\Phone).
New daily notes automatically get a block under ## Media when media exists for that day:
```daily-media
```
Existing notes: run Insert media gallery into this daily note (or enable “Also add when opening an existing daily note”).
Optional block options, one per line: date: 2024-05-01, type: photos|videos, size: 220, limit: 30, names: true, time: false.
The block is rendered live from the index, so your note only contains those two lines.
Windows' Date created / Date modified are file-system timestamps and change whenever a file is copied, synced or re-saved. This plugin reads what's inside the file, in this order:
| Step | Photos | Videos (MP4 / MOV / M4V / 3GP) |
|---|---|---|
| 1. Embedded date | EXIF DateTimeOriginal, then CreateDate (JPEG, HEIC, AVIF, TIFF, DNG) |
Apple com.apple.quicktime.creationdate (local time + offset), else ©day, else the mvhd creation time (UTC, same value Windows 11 shows as "Media created") |
| 2. File name | IMG_20240501_211403, PXL_…, IMG-20240501-WA0001 (toggle) |
same |
| 3. File system | earliest of created/modified (configurable, or skip) | same |
Metadata is cached (media-cache.json in the plugin folder, keyed by size + modified time), so rescans are fast.
obsidian://daily-media?file=<path>. Save this as daily-media.reg and double-click it:Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations\image\shell\ObsidianDailyNote]
@="Open Obsidian daily note for this date"
[HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations\image\shell\ObsidianDailyNote\command]
@="cmd /c start \"\" \"obsidian://daily-media?file=%1\""
[HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations\video\shell\ObsidianDailyNote]
@="Open Obsidian daily note for this date"
[HKEY_CURRENT_USER\Software\Classes\SystemFileAssociations\video\shell\ObsidianDailyNote\command]
@="cmd /c start \"\" \"obsidian://daily-media?file=%1\""
On Windows 11 the entry appears under Show more options (Shift+F10). Paths containing &, # or % won't survive the
trip through cmd; rename those or use the in-Obsidian menus. Remove the keys under …\SystemFileAssociations\image\shell and \video\shell to undo it.
daily-media code block to daily notes (automatically only if you leave "Add gallery to new daily notes" on, or when you run the command). It also stores a metadata cache, media-cache.json, in its own plugin folder.obsidian://daily-media URI. It only does something if you add the registry entry shown above yourself.