No description
Find a file
2025-10-11 01:32:21 +08:00
.github chore: add funding link 2025-08-31 15:04:38 +08:00
src refactor: follow Obsidian guidelines 2025-10-10 16:09:34 +08:00
.gitignore feat: add live preview support 2025-08-13 00:24:51 +08:00
.npmrc chore: configure npm version 2025-10-11 01:32:07 +08:00
esbuild.config.mjs Initial commit 2025-08-11 18:23:36 +08:00
eslint.config.mjs chore: add new linting rule 2025-09-30 02:39:19 +08:00
LICENSE Initial commit 2025-08-11 18:23:36 +08:00
manifest.json chore: 1.0.1 2025-10-11 01:32:21 +08:00
package-lock.json chore: 1.0.1 2025-10-11 01:32:21 +08:00
package.json chore: 1.0.1 2025-10-11 01:32:21 +08:00
README.md chore: 1.0.0 2025-10-09 22:25:18 +08:00
styles.css fix: avoid reprocessing of nested task items 2025-09-30 00:47:13 +08:00
tsconfig.json Initial commit 2025-08-11 18:23:36 +08:00
version-bump.mjs feat: add live preview support 2025-08-13 00:24:51 +08:00
versions.json chore: 1.0.1 2025-10-11 01:32:21 +08:00

Relative Dates

A simple plugin for Obsidian that transforms date references in your task lists into color-coded pills that show relative dates.

Features

  • Converts date references in the format 📅 YYYY-MM-DD (with optional time HH:MM) into relative date pills
  • Works in both Reading mode and Live Preview mode
  • Color-coded pills based on date proximity (overdue, today, tomorrow, this week, future)
  • Customizable colors via settings

Usage

Add dates in your task lists using the format:

  • 📅 2025-08-12 for dates
  • 📅 2025-08-12 14:30 for dates with time

The plugin will automatically convert these into easy-to-read pills like "Today", "Tomorrow", "Monday 2 PM", etc.

Installation

  1. Clone the repository to .obsidian/plugins/:
    git clone https://github.com/Munckenh/obsidian-relative-dates.git
    
  2. Install the dependencies and compile:
    npm install
    npm run build
    
  3. Enable the plugin in Obsidian

Release

To release a new version of the plugin:

  1. Update manifest.json with the new version number, such as 1.0.1, and the minimum Obsidian version required for the latest release.
  2. Run npm version patch, npm version minor, or npm version major.
  3. Create new GitHub release using the new version number as the "Tag version". Use the exact version number, don't include a prefix v. See here for an example: https://github.com/obsidianmd/obsidian-sample-plugin/releases
  4. Upload the files manifest.json, main.js, styles.css as binary attachments. Note: The manifest.json file must be in two places, first the root path of the repository and also in the release.
  5. Publish the release.

Scripts

To manage the plugin, you can use the following scripts:

  • Build the plugin by running npm run build or with live reload by running npm run dev
  • Improve code quality (optional) by running npm run lint