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

Link all notes in this folder to the folder index note #112

Closed
elkadre opened this issue Aug 25, 2021 · 3 comments
Closed

Link all notes in this folder to the folder index note #112

elkadre opened this issue Aug 25, 2021 · 3 comments
Labels
builders Different methods for adding edges to the BC graph

Comments

@elkadre
Copy link

elkadre commented Aug 25, 2021

It would be very helpful to be able to quickly link all notes within a folder to a folder note or index note. That would quickly incorporate them into the hierarchy and give a good overview of the vault.

As mentioned in Discord:

Breadcrumbs can definitely be used to replicate a folder structure. But only if the metadata is there already (or the hierarchy note). It needs some way to know which notes go where in the hierarchy, you know?

The suggestion, which would solve the problem and quickly input the missing metadata, would be:

  1. A command that says, "Link all notes in this folder to the folder index note". Something like parent: [[Folder 1 Index]]

Thank you!
(And here is a link to the Discord conversation, if it helps!)

@SkepticMystic SkepticMystic added the builders Different methods for adding edges to the BC graph label Sep 3, 2021
@SkepticMystic
Copy link
Owner

SkepticMystic commented Sep 3, 2021

@enjolrs I'm gonna try get this working.
For now, I will work with the requirement that the Folder Index Note be named after the folder.
But in future, this shouldn't need to be the case. What method would you recommend to tell Breadcrumbs which is the folder index note, if it isn't named after the folder?

@SkepticMystic
Copy link
Owner

@enjolrs one issue that immediately comes up is that the Breadcrumbs index is refreshed from scratch every time.
So if you run the command Link all notes in this folder to the folder index note once, then those notes won't be part of the hierarchy anymore after pressing Refresh Index... So I think there needs to be a way to give a list of folders where you want this behaviour to happen, you know what I mean?
So you could give a list, like ['FolderA', 'FolderB'], and Breadcrumbs would link all those child notes everytime

@SkepticMystic
Copy link
Owner

@lkadre This is implemented in 1.9.0 :D

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
Projects
None yet
Development

No branches or pull requests

2 participants