Next/Previous Daily Note hotkeys should work with subfolders

Use case or problem

I am currently using the Date format YYYY/M/YYYY-MM-DD for Daily notes filename, to subdivide journal notes into YEAR/MONTH subfolders.

Using the Hotkey for Daily notes: Open today’s daily note does work. However, Daily notes: Open next daily note and Daily notes: Open previous daily note does not.

Proposed solution

Make hotkeys for Daily notes: Open next daily note and Daily notes: Open previous daily note work for Daily notes in subfolders.

Current workaround (optional)

None.

Related feature requests (optional)

Original bug filed

2 Likes

FWIW, Periodic Notes plugin supports this, so its not a biggie.

+1… I use YYYY/YYYY.MM.DD and have the same issue

For what it’s worth, navigation already seems to work, we just can’t trigger the command from anywhere other than the root file.

Steps to reproduce:

  1. Under the root folder, create a daily note for a date in the past (2022-03-20)
  2. Under the root folder, create a daily note 2 days after the first note (2022-03-22)
  3. Under a new folder, create a daily note for the day in between the first two (2022-03-21)
  4. See that you can navigate between all the notes (assuming you have a blank template)

Upon even further experimentation, it seems that it can pick up properly formatted notes in any folder within the vault, however the Daily Note folder gets priority (even when triggered from a different folder).

It seems that any custom defined pattern for Daily Notes disables the ‘Next’ and ‘Prev’ navigation, not just the inclusion of subfolders. For example, YYYY-MM_MMM-DD does not work, despite ostensibly having the same navigation structure.

I suppose an argument could be made for having trouble parsing which is the “Next” note for non-ISO compliant structures like DD-MM-YY. However, already the only notes recognized are the ones that follow the defined structure (adding anything before or after the note title makes it not recognized), so I feel like adding a traversal for notes that already follow a strict convention should be easier to do than for an arbitrary list.

Regardless, +1 from me as I would find this feature invaluable.