blacksmithgu / obsidian-dataview

A data index and query language over Markdown files, for https://obsidian.md/.
https://blacksmithgu.github.io/obsidian-dataview/
MIT License
6.92k stars 407 forks source link

Materialize a query as a dockable panel with name and icon (name as "linked mentions" etc...) #947

Open tobei opened 2 years ago

tobei commented 2 years ago

I would like to materialize dataview queries into their own names, dockable panels. The result of the query would be evaluated against the current selected note in case of query arguments like [[ ]]. Optionally, having the option of those panels popping up only if the current selected notes satifies some conditions or if there result list is not empty.

Usecase : my notes represents people, projects, meetings, technologies, thus when i look at a projects backlinks for example i'll find a long list of dailies, people who worked on the projects, meetings about this projects etc. I would love if when i watch a project note i get a materialized view of every meeting (tag or folder here) backlinking to the project into a named panel called "meeting" (eventually adding custom icons to the queries to make them easy to click). When watching a technology note i would get the panel (or another panel) pop in to show me every projects using (backlinking to) that technology.

I currrently have those kind of listing as dataview queries inside each note template, but because my workflow really revolve around the usage of 10 or so concepts it would be great if i could make use of those dockable panel space for materialized views relative to the currently opened note. The "linked mention" panel is way too cluttered and disorganized as the vault grows.

blacksmithgu commented 2 years ago

I think this is a very interesting idea (have tab views which have their this property set to the current active view pane); more generally, a fast and responsive "Dataview" pane which just let you type out queries that are live-reloaded with very short delay and can rely on other panes is interesting.

AB1908 commented 2 years ago

Related discussion in #1180.