breadcrumbs icon indicating copy to clipboard operation
breadcrumbs copied to clipboard

[BUG]: Dated notes don't work with Prev/Next in YAML

Open derekvan opened this issue 3 years ago • 3 comments

Dated notes in YAML don't work with prev/next, although they do work in Dataview fields in the note.

e.g.,

---
next: ['2021-12-02']
prev: ['2021-11-30']
up: ['2021-W49']
---

In the above case, the "up" field is represented in the list view, but the dated notes are listed as "same" not "prev" or "next"

derekvan avatar Dec 01 '21 12:12 derekvan

Thanks for the bug report. Having spoken to the DV dev, a fix currently isn't possible, but should be in the next DV release

SkepticMystic avatar Dec 03 '21 19:12 SkepticMystic

quick note: if I change that YAML to this, it works (that is, if I add .md to the end of the link name):

---
next: ['2021-12-04.md']
prev: ['2021-12-02.md']
week: ['2021-W49']
---

derekvan avatar Dec 04 '21 22:12 derekvan

I can confirm this is still an issue. I'm using DataView 0.5.41, Breadcrumbs 3.4.1, and Obsidian 0.15.6 on Windows 11. Putting next/prev in YAML does not produce a Next/Previous trail view. However, entering the same content as DV fields in the body does produce the Next/Previous trail view.

Triquetra avatar Jul 19 '22 22:07 Triquetra

@derekvan can you check if this is still an issue in V4 (also considering the new Properties system in Obsidian)

SkepticMystic avatar Mar 17 '24 13:03 SkepticMystic

@SkepticMystic I stopped using those explicit fields in my notes long ago. However, the "jump to next neighbor by field:next" works on my dated notes, dated YYYY-MM-DD with that option turned on in the breadcrumbs settings. Does that answer your question?

derekvan avatar Mar 17 '24 17:03 derekvan

Ok cool, that's helpful to know. I'll close this as complete in v4, then. For anyone coming to this issue, see here for more info: https://github.com/SkepticMystic/breadcrumbs/blob/master/V4.md

SkepticMystic avatar Mar 17 '24 17:03 SkepticMystic