-
Notifications
You must be signed in to change notification settings - Fork 7
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
Feature Request: export another json with breadcrumbs metadata? #13
Comments
https://skepticmystic.github.io/breadcrumbs/interfaces/BCAPII.html#getMatrixNeighbours That would probably make the most sense? So iterating over all markdown notes to get their hierarchies. |
@kometenstaub I could certainly expose something (or even code something new) to make this more convenient. |
But yes, |
I see. Ideally I could just give it a Looking at I also cannot find the paths and only the note names in it, so that would also not work properly for duplicate names, I think. |
I think But yes, duplicate note names are an issue |
const files = app.vault.getMarkdownFiles()
const api = app.plugins.plugins.breadcrumbs.api
let arr = []
for (const file of files) { arr.push({[file.path]: api.getMatrixNeighbours(file.path.split('/').last().slice(0,-3))})}
console.log(arr) This does the trick, I'm impressed that graphology's Do you have plans to add support for |
But it doesn't get the dataview inline metadata with that. @SkepticMystic |
The issue is that the nodes are added to the graph using just the basename, not full path. So I'd need to completely redo how that's done. |
@kometenstaub what do you mean? It doesn't pickup inline Breadcrumbs |
I suppose that is because it doesn't work with links alone but just frontmatter? So you couldn't just run
That was it. It does work when I manually refresh the index though. So before executing it, I would need to do app.commands.executeCommandById('breadcrumbs:Refresh-Breadcrumbs-Index') But that also displays a |
long term only, but using the Breadcrumbs API, one could also export data on the breadcrumbs index to navigate it via Alfred 👀
https://discord.com/channels/686053708261228577/855181471643861002/942003316123119646
The text was updated successfully, but these errors were encountered: