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

FR: Point to a folder of hierarchy notes to read all of them, instead of writing out each hierarchy note name individually #138

Closed
pdlife opened this issue Oct 3, 2021 · 6 comments
Labels
builders Different methods for adding edges to the BC graph FR New feature or request

Comments

@pdlife
Copy link

pdlife commented Oct 3, 2021

"Hierarchy Note(s)
A list of notes used to create external Breadcrumb structures."

About this setting.

I think it would be better to apply to all notes, or set all notes in a folder. So that it can determine the parent and child of a note through the list. Instead of "parent:: [[]], child:: [[]]"

@SkepticMystic
Copy link
Owner

Hey @pdlife :)
I'm not sure I understand. Hierarchy notes do this: https://github.com/SkepticMystic/breadcrumbs/wiki/Hierarchy-Notes, right.
Are you instead asking for something like #112?
Or something completely different?

@HananoshikaYomaru
Copy link
Contributor

HananoshikaYomaru commented Nov 20, 2021

@pdlife If you want to put hierarchy notes in a folder you need to specify the path to the folder such that the names of different notes won't be mixed up. For example,

hierarchy/obsidian, hierarchy/javascript, hierarchy/mathematics, hierarchy/Root, hierarchy/awesome books, hierarchy/Computer Science

I write a script to automatically generate the hierarchy note string. Whenever I add a refactor my note, add or remove a hierarchy note, I just need to copy and paste that string.

@SkepticMystic
Copy link
Owner

@HananoshikaYomaru do you mind sharing the script? :)
Maybe I can add that as a feature!

@HananoshikaYomaru
Copy link
Contributor

Sure, all my hierarchy notes is in the hierarchy folder.

And I have the following dataviewjs script

dv.paragraph(dv.pages('"hierarchy"').file.name.map (name => "[[hierarchy/" + name + "]]").join(", "))

This line will generate a string that I can directly copy and paste into the hierarchy note field.

@SkepticMystic SkepticMystic changed the title Hierarchy Notes in a folder FR: Point to a folder of hierarchy notes to read all of them, instead of writing out each hierarchy note name individually Jan 18, 2022
@SkepticMystic SkepticMystic added builders Different methods for adding edges to the BC graph FR New feature or request labels Jan 18, 2022
@SkepticMystic
Copy link
Owner

I've added this in the latest release :)
You can enter a folder name (ending with /) to use all the child notes in that folder as hierarchy notes

@HananoshikaYomaru
Copy link
Contributor

that will be absolutely convenient!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
builders Different methods for adding edges to the BC graph FR New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants