by Philip Linden
Keeps one pinned tab on today's daily note and moves it to the new note when the day changes.
Pin Daily Note
An Obsidian plugin that keeps one pinned tab on today's daily note. When the day rolls over, that same tab moves to the new day's note.
Pinning a daily note tab by hand doesn't last: tomorrow it's still pinned to yesterday. This plugin keeps the pin on whatever today is.
What it does
- Moves the pin forward: if the pinned daily tab is on an old day, it opens today's note in that tab without stealing focus.
- Pins today's note: if no daily tab is pinned, it pins the first tab showing today's note.
- One pin only: any other pinned daily tabs are unpinned.
- Command: Open today's daily note reuses the pinned tab, or opens a new one, then pins and focuses it.
- Creates the note: if today's note or its folder doesn't exist yet, it creates them from the configured template, if any.
It checks when a file opens, every 60 seconds, and when the window gets focus.
Configuration
This plugin sits on top of your daily notes plugin, which stays the source of truth for folder, date format, and template. Under Settings → Pin Daily Note, Daily note source picks which one to follow:
- Auto-detect (default): Periodic Notes (if its daily notes are enabled), then Notebook Navigator, then core Daily notes.
- Core Daily notes, Periodic Notes, Notebook Navigator: follow that plugin only.
- Custom: set the folder, moment.js date format (may include slashes, e.g.
YYYY/YYYY-MM/YYYY-MM-DD), and template here.
Settings are re-read from the source plugin each time, so changes there apply immediately.
Daily note regex (optional) overrides how daily note paths are recognized. It's matched against the full vault path. By default a note counts as a daily note if its path is inside the folder and parses as a date in the configured format.
Notebook Navigator's settings are read from periodicNotesFolder and calendarCustomFilePattern. I haven't verified those keys against a current release, so use Custom if auto-detection misses.
Install
No build step. Copy main.js and manifest.json into <vault>/.obsidian/plugins/pin-daily-note/, then enable Pin Daily Note in Settings → Community plugins.
Limitations
- It only protects the daily note tab. Clicking a link in any other unpinned tab still replaces that tab.
- New notes use the source plugin's template with only basic
{{title}},{{date}}, and{{time}}substitution. Templater syntax isn't run.
Releasing
Obsidian installs from GitHub releases. Bump version in manifest.json, add the same version to versions.json with its minAppVersion, then push a tag that exactly matches the version (no v prefix). The workflow in .github/workflows/release.yml attaches main.js and manifest.json to the release.
License
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.