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: a note cannot be linked to another note by multiple hierarchies #353

Open
justpeanuts opened this issue Feb 22, 2022 · 3 comments
Open

Bug: a note cannot be linked to another note by multiple hierarchies #353

justpeanuts opened this issue Feb 22, 2022 · 3 comments
Labels

Comments

@justpeanuts
Copy link

@justpeanuts justpeanuts commented Feb 22, 2022

Describe the bug
If in a note named "noteA" the following is written:
up1 :: [[noteB]]
up2 :: [[noteB]]
where up1 and up2 belong to two different hierarchies.
Then, only one of the relations "noteB is up1 of noteA" OR "noteB is up2 of noteA" shows up in the matrix view.

To Reproduce
Steps to reproduce the behavior:

Install the dataview plugin in addition to the breadcrumbs plugin in order to use the inline dataview syntax

  1. Create a hierarchy with up direction named as "up1"
  2. Create another hierarchy with up direction named as "up2"
  3. Create a note named "noteA"
  4. Create another note named "noteB"
  5. Type the following text as the content of noteA:
    up1 :: [[noteB]]
    up2 :: [[noteB]]
  6. Select the matrix view of the breadcrumbs plugin in the sidebar on the right hand side
  7. Refresh the matrix view
  8. Only either up1 or up2 is shown.

Expected behavior
Both up1 and up2 must be shown

Desktop (please complete the following information):

  • OS: Linux Mint 20
  • Breadcrumbs Version 2.55.2
  • obsidian version v0.13.14

Additional context
Add any other context about the problem here.

@ooker777
Copy link
Contributor

@ooker777 ooker777 commented Feb 23, 2022

It has a similar bug #336 . Try turn it off and on to see if it works?

@justpeanuts
Copy link
Author

@justpeanuts justpeanuts commented Feb 23, 2022

It has a similar bug #336 . Try turn it off and on to see if it works?

No, i don't think turning off and on the plugin resolves the issue.. i think the plugin is designed to not allow a single note to be related to a given note by multiple hierarchies. If so, I don't understand why this is the case.

@justpeanuts justpeanuts changed the title Bug: Bug: a note cannot be linked to another note by multiple hierarchies Feb 27, 2022
@jeremyparadie
Copy link

@jeremyparadie jeremyparadie commented Mar 13, 2022

I am getting the same unintuitive behavior.

It seems that two notes can only have one relationship type. This is even the case with a single hierarchy, such as two notes having both the same/sibling relation and the next/prev relation. Only one of these relations will be recognized, not both.

Here is a vault showcasing the problem: Breadcrumbs bug demo.zip

Since all of the siblings have the same parents, Sam and Martha should also be listed as Siblings.

image

Ideally, I'd like the option for next/previous relationships to also imply siblings/same relationships (and ideally only for specific hierarchy schemes)

I tried using two different up/parent down/child hierarchy schemes instead, and it seems that two notes can only have one relationship type, regardless of if the two relations are from the same hierarchy scheme or a different hierarchy scheme.

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

Successfully merging a pull request may close this issue.

None yet
3 participants