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: Hierachy notes overflow into the next hierarchy note #216

Closed
natalie-foust opened this issue Dec 15, 2021 · 2 comments
Closed

Bug: Hierachy notes overflow into the next hierarchy note #216

natalie-foust opened this issue Dec 15, 2021 · 2 comments

Comments

@natalie-foust
Copy link

natalie-foust commented Dec 15, 2021

This is a minor bug that comes from user misconfiguration, but I figured I would let you know anyway. Just seems to be some unexpected behavior that is easily fixable on the user-side for now but could perhaps lead to bigger headaches later. Happened in version 2.9.2

The Problem: When a hierarchy note ends with an item without any children, the first item in the next hierarchy note is made its child.

Example

Step 1. Declare Note-X and Note-Y as Hierarchy Notes. Note-Y comes immediately after Note-X in the comma separated list.
file: .obsidian/plugins/breadcrumbs/data.json

  "hierarchyNotes": [
    "...",
    "Note-X",
    "Note-Y",
    "..."
  ]

Step 2. Create the hierarchy notes Note-X and Note-Y. By user error the last entry in Note-X does not have any children.

file: Note-X

- [[Note-A]]
  - [[Note-B]]
  - [[Note-C]]
- [[Note-D]]

file: Note-Y

- [[Note-E]]
  - [[Note-F]]

Result: Note-D will be made the parent of Note-E and the user likely will have no idea why this is.

@SkepticMystic
Copy link
Owner

Ahh I think I see where the issue is. Thank you for such a detailed bug report :)

@SkepticMystic
Copy link
Owner

Please let me know if this still happens on 2.9.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants