breadcrumbs icon indicating copy to clipboard operation
breadcrumbs copied to clipboard

Bug: Date builder assumes same directory

Open edongashi opened this issue 6 months ago • 0 comments

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.

edongashi avatar Aug 07 '24 21:08 edongashi