Pin of the Day
unlistedby Matthieu ELIE
Automatically opens and pins today's daily note, replacing whatever was pinned before.
Pin of the Day
Obsidian plugin that keeps today's daily note pinned, automatically.
On startup, it unpins whatever was pinned before and pins today's note instead. If you close that tab and reopen today's note later in the session, it gets pinned again too.
Requirements
The core Daily Notes plugin must be enabled.
Settings
Create today's note automatically at startup (off by default). When enabled, today's note is created (using the Daily Notes plugin's own folder, format and template) if it doesn't exist yet, then pinned. With this off, the plugin does nothing until the note exists.
Install
Not on the community plugin list. To install manually:
- Grab
main.jsandmanifest.jsonfrom a release. - Drop them in
<vault>/.obsidian/plugins/pin-of-the-day/. - Enable the plugin from Settings → Community plugins.
Development
npm install
npm run dev # build, watch, and deploy into the vault at $PIN_OF_THE_DAY_VAULT_PATH
npm test # unit tests for the pure decision logic in src/logic.ts
npm run lint
npm run typecheck
src/logic.ts holds the actual pin/reuse/create decisions and is fully unit-tested.
src/main.ts is the Obsidian-facing glue; it isn't unit-tested and is exercised by hand in the real app instead.
License
MIT, see 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.