Days Since
by gndclouds
Score: 47/100
favorite
share
Description
Category: Note Enhancements

The Days Since plugin for Obsidian adds a handy tooltip feature that tracks the number of days that have passed since a specific date. By simply hovering over a date in the format YYYY-MM-DD within your notes, users can instantly view how many days have elapsed. This tool is useful for monitoring project timelines, journal entries, or other important dates, providing an intuitive and quick way to track time directly in Obsidian without requiring additional tools.

Stats
5
stars
2,023
downloads
1
forks
338
days
244
days
244
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
1
total issues
0
open issues
1
closed issues
7
commits
Latest Version
8 months ago
Changelog

New Features

  • Tooltip for Dates: Added functionality to display a tooltip showing the number of days since a date when hovering over file names or selecting text within files. The tooltip appears only if a valid date format is detected.
  • File Viewer Integration: Tooltip functionality is now integrated with the file viewer, providing dynamic date information when hovering over file names.
  • Theme Matching: Tooltip styling now matches the active Obsidian theme, ensuring consistent look and feel.

Enhancements

  • Improved Tooltip Readability: Added a border and a light shadow to the tooltip to enhance readability and contrast.
  • Selection Handling: Tooltip displays only when a single date or a date with one space on either side is selected, preventing false positives when large chunks of text are selected.

Bug Fixes

  • Error Handling: Fixed an issue where getRangeAt would throw a DOMException when called on an empty selection.
  • CSS Injection: Resolved Content Security Policy (CSP) restrictions by injecting CSS styles directly into the document head, ensuring compatibility with Obsidian's security settings.

Detailed Changes

  • Added handleSelection method to display the tooltip based on text selection.
  • Added handleHover method to display the tooltip based on hovering over file names in the file viewer.
  • Added injectStyles method to inject CSS styles directly into the document head, avoiding CSP issues.
  • Improved tooltip styling with added border and box shadow for better contrast and readability.
  • Ensured tooltip functionality only triggers for exact date selections or file names within the file viewer.

(Integrated into main.ts) Added styles for .plugin-tooltip to match the active Obsidian theme and improve tooltip readability.

How to Use

  • Hover Over File Names: Hover over file names in the file viewer to see a tooltip showing the number of days since the date in the file name.
  • Select Text: Select a date or a date with one space on either side within a file to see the tooltip with the number of days since the selected date.
README file from
Similar Plugins
info
• Similar plugins are suggested based on the common tags between the plugins.
TimeStamper
3 years ago by Martin Eder
A plugin for Obsidian to quickly insert customized date- and time-stamps to the currently active note
Super Simple Time Tracker
2 years ago by Ellpeck
Multi-purpose time trackers for your notes!
WakaTime
2 years ago by WakaTime
Obsidian.md plugin for automatic time tracking and metrics generated from your Obsidian usage activity.
Obsidian-compatible Watcher for ActivityWatch
2 years ago by Grimmauld
Obsidian plugin to track user activity with ActivityWatch
RescueTime
a year ago by Tatsuya Hayashi
A RescueTime integration plugin to view your activity logs in Obsidian.
Time Things
a year ago by Nick Winters
Show clock, track time spent editing a note, and track the last time a note has been edited.
ManicTime
a year ago by Finkit d.o.o.
Fastimer
a year ago by vkostyanetsky
Intermittent fasting tracker plugin for Obsidian
Progress Clocks
10 months ago by Nathan Clark
Progress clocks and other useful widgets for https://obsidian.md/.
Timekeep
8 months ago by Jacobtread
Obsidian task time tracking
Checkbox Time Tracker
8 months ago by UD
Checkbox Time Tracker for Obsidian
Relative Timestamps
7 months ago by Charles Young
Natural Language Dates
4 years ago by Argentina Ortega Sainz
Work with dates in natural language in Obsidian
Stopwatch
4 years ago by Tokuhiro Matsuno
Grandfather
4 years ago by Danny Hernandez
A simple Obsidian plugin to display the time and date on the status bar
Toggl Track
3 years ago by Maxime Cannoodt
A Toggl integration plugin for the popular knowledge base application Obsidian.
Flexible Pomodoro
3 years ago by grassbl8d
Rich Foot
4 months ago by Justin Parker
🦶 Obsidian plugin that adds backlink/outlink tags and created/modified dates to the footer of your notes
Chronos Timeline
2 months ago by Claire Froelich
Render interactive timelines in your Obsidian notes from simple Markdown.
Fetch Prayer Times
a month ago by Ecys
Fetches times from Aladhan API and inserts into a table.
Focus Time
a month ago by AstraDev
Focus Time is a plugin that helps you track how much time you spend on each note.
Easy Timeline
13 days ago by Romeliun
The Easy Timeline plugin for Obsidian allows you to create timelines easily.