SkepticMystic / breadcrumbs

Add typed-links to your Obsidian notes
https://publish.obsidian.md/breadcrumbs-docs
MIT License
533 stars 36 forks source link

Bug: Date builder assumes same directory #564

Open edongashi opened 3 months ago

edongashi commented 3 months ago

Describe the bug

There is a bug in the date builder here: https://github.com/SkepticMystic/breadcrumbs/blob/af50de11c8dd70af4167a98044e05292bec85339/src/graph/builders/explicit/date_note.ts#L88-L92

This code assumes the next date lives in the same directory as the current date.

In my vault I organize dates in nested directories by Timestamps/yyyy/MM-MMMM/yyyy-MM-dd-cccc. When I reach the last day of a month, the next note is a dead link because it assumes the same directory as the current day:

image

Clearly 2024-05-01 should not live in the 04-April directory, and the link is greyed out because it points to a non-existing file:

image

To Reproduce

Steps to reproduce the behavior:

  1. Organize date notes in separate directories by say month or year
  2. Enable the date notes builder
  3. Select last date in directory
  4. Next date is a dead link

Expected behavior

Link should point to the directory of the next date.