Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Date builder assumes same directory #564

Open
edongashi opened this issue Aug 7, 2024 · 0 comments
Open

Bug: Date builder assumes same directory #564

edongashi opened this issue Aug 7, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@edongashi
Copy link

Describe the bug

There is a bug in the date builder here:

const target_path = Paths.build(
date_note.folder,
target_basename,
date_note.ext,
);

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 edongashi added the bug Something isn't working label Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

1 participant