No description
Find a file
2025-02-10 16:11:05 -06:00
demo_resources Add diet estimates command 2025-02-08 23:22:16 -06:00
src Add output length sentences setting 2025-02-10 16:11:02 -06:00
.editorconfig Initial commit 2025-02-07 23:28:05 -06:00
.eslintignore Initial commit 2025-02-07 23:28:05 -06:00
.eslintrc Initial commit 2025-02-07 23:28:05 -06:00
.gitignore Initial commit 2025-02-07 23:28:05 -06:00
.npmrc Initial commit 2025-02-07 23:28:05 -06:00
esbuild.config.mjs Initial commit 2025-02-07 23:28:05 -06:00
LICENSE Update license and typo in manifest 2025-02-08 16:18:46 -06:00
main.ts Add output length sentences setting 2025-02-10 16:11:02 -06:00
manifest.json 1.1.1 2025-02-10 03:50:32 -06:00
package-lock.json 1.1.1 2025-02-10 03:50:32 -06:00
package.json 1.1.1 2025-02-10 03:50:32 -06:00
README.md Update README.md 2025-02-10 13:09:06 -06:00
styles.css Initial commit 2025-02-07 23:28:05 -06:00
tsconfig.json Working version of on this day ai 2025-02-08 02:21:47 -06:00
version-bump.mjs Initial commit 2025-02-07 23:28:05 -06:00
versions.json 1.1.1 2025-02-10 03:50:32 -06:00

on-this-day-i

This plugin for Obsidian adds AI commands for daily journals.

Features

This plugin comes with two commands:

Add Placeholder at Cursor

Adds a custom tag at your cursor location which the generation command looks for and replaces if it is available. The tag can be changed in settings. A tag command and setting should be available for each generation command.

Generate Through The Years

Uses AI to find Daily Notes from the same date as your current note in years past. Generates a brief summary of this date for each instance of it through the years and places it in your note.

Generate Diet Estimates

Parse your daily journal for food-related lines, and create a dietEstimates code-block that estimates your daily calories and macros.

How to Use

  • Enable the plugin in the settings menu and update the plugin settings accordingly.
  • Open the command palette and search for On This Day I to see the commands.
  • If you want the output to be placed at a certain location in your note, add a placeholder (default is , can be changed in settings). Run the On This Day I: Add Placeholder at Cursor command if you'd like to automatically add a placeholder to your note at cursor location.
  • Run the command On This Day I: Generate Through The Years to generate your yearly insights.
  • Run the command On This Day I: Generate Diet Estimates to generate a calorie and macro estimates code-block.

OpenAI

  • This plugin makes a network call to the OpenAI API to generate the journal summaries.
  • Must have OpenAI API key. See platform.openai.com. Add this key to plugin settings.
  • Model can be adjusted. Currently support gpt-3.5-turbo and gpt-4. Older models will be cheaper and often faster, but newer models will have higher quality outputs.

Through the Years Date Requirements

  • Must be run from a note with a valid Date format. Update the date format in settings to match your daily note format.
  • Daily notes must all follow the same date format (e.g, MMMM D, YYYY would be something like February 6, 2025)
  • There must be at least one other daily note from this day in a past year.

Diet Estimates Requirements

  • Meant to be run on a daily journal that includes information documenting what you have eaten in a day.

How to Install

From within Obsidian

You can activate this plugin within Obsidian by doing the following:

  • Open Settings > Third-party plugin
  • Make sure Safe mode is off
  • Click Browse community plugins
  • Search for "On This Day I"
  • Click Install
  • Once installed, close the community plugins window and activate the newly installed plugin

Obsidian Mobile

When using Obsidian on a mobile device, open the command palette to access the On This Day I plugin commands.