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

Handle Dataview property:: breadcrumbs in tasks #534

Open
eohannes opened this issue Apr 13, 2024 · 3 comments
Open

Handle Dataview property:: breadcrumbs in tasks #534

eohannes opened this issue Apr 13, 2024 · 3 comments
Labels
bug Something isn't working builder:typed-link Regular frontmatter/dataview typed links

Comments

@eohannes
Copy link

Is your feature request related to a problem? Please describe.
I've noticed that Breadcrumbs does not seem to be aware of Dataview property breadcrumbs that are listed inside tasks. For example:

Note B
--- 
- [ ] this is a task. down:: [[Note C]]
- [x] this is another task. up:: [[Note A]] 

In this scenario, I'd like the hierarchy to run Note A -> Note B -> Note C. Currently, it does not. I think this is because Dataview attributes properties in tasks to the tasks themselves (which can be queried separately from notes) and not to their parent note. (Conversely, Dataview attributes properties of a note to all its task children.)

Describe the solution you'd like
I'd like Breadcrumbs to provide an option to attribute a note's tasks' breadcrumbs (i.e., only those in a registered hierarchy) to the note itself when building its graph.

Describe alternatives you've considered
Currently I use a number of nasty DataviewJS blocks to explore my graph and generate tables of tasks derived from breadcrumbs and additional Dataview properties. This works fine for most of my purposes but does not inform the Grid View at the top of each page.

(Side note: I'd love it if I could query implied properties in Dataview too; this would make the DataviewJS code much less nasty. Let me know if this is also worthy of a feature request.)

Additional context
I'm using the latest beta of Breadcrumbs, 4.0.107-beta.

@SkepticMystic
Copy link
Owner

Thanks for the detailed issue! This seems reasonable, will work on sometime

@SkepticMystic SkepticMystic added bug Something isn't working builder:typed-link Regular frontmatter/dataview typed links labels Apr 13, 2024
@SkepticMystic
Copy link
Owner

This sounds like a stupid question, but is dataview even aware of fields in that format? I thought they used a different syntax for inline-fields.
Breadcrumbs uses whatever dataview gives it, so if those fields aren't used by BC, I suspect DV isn't supplying them

@eohannes
Copy link
Author

eohannes commented Apr 28, 2024

Yes, but they don't show up in the parent page's properties; they're individually attributed to the task objects you'd get from dv.current().file.tasks. I don't know anything about Breadcrumbs' internal architecture but I imagine you'd need to add a few lines in the property discovering code that trawl each page's tasks for properties and attribute them to the page itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working builder:typed-link Regular frontmatter/dataview typed links
Projects
Status: Todo
Development

No branches or pull requests

2 participants