obsidian-dataview icon indicating copy to clipboard operation
obsidian-dataview copied to clipboard

Dataview Pane

Open apiarian opened this issue 3 years ago • 6 comments
trafficstars

I have a number of notes that have Summary:: fields. They can be handy as quick reference for the note.

I would like to have a pane, similar to the Outgoing Links pane, which lists notes that are linked to the current pane and their associated summaries.

More generally, I would love a pane where I could write a "temporary" dataview query to be executed current note without needing to actually add it to the note itself.

I have considered adding a template for something like

```dataview
TABLE Summary
FROM outgoing([[]])
where summary

And inserting that into my notes, but that seems more heavy-handed than what I'd like to be able to do.

apiarian avatar Jun 12 '22 19:06 apiarian

This is somewhat doable with a bit of DVJS, especially considering that #374 just closed.

AB1908 avatar Jun 14 '22 08:06 AB1908

I'm not sure how quickly I can get to this; it depends a bit on how "fancy" the view should be. Probably the simplest solution is a simple two-tab view ("source" and "result"), with an optional toggle that will rebind this to whatever the currently focused page is. The view would update whenever the active focus in the workspace changes, with some debouncing to avoid tanking performance if you do a lot of tab switching.

blacksmithgu avatar Jun 14 '22 23:06 blacksmithgu

This is probably implementable completely as an external plugin, as well, in case I don't get to it in a reasonable amount of time.

blacksmithgu avatar Jun 14 '22 23:06 blacksmithgu

Ive done this before. Needed a slight workaround. I'll dig my query and get back here tomorrow.

jroachgit avatar Jun 20 '22 14:06 jroachgit

So! This works: Note 1: Summary:: this is my #summary in my first note

Note 2: #summary Summary:: this is my summary in my second note


Key takeaway: you need the tag #summary and DV works with the tag hierarchy - if you have #summary/subtag1 #summary/subtag2 etc, Then you need the inline tag of 'Summary::'

```dataview
table Summary from #summary

Keen to know if this works for you or if I have misunderstood your problem.

jroachgit avatar Jun 21 '22 02:06 jroachgit

Key takeaway: you need the tag #summary and DV works with the tag hierarchy - if you have #summary/subtag1 #summary/subtag2 etc, Then you need the inline tag of 'Summary::'

Keen to know if this works for you or if I have misunderstood your problem.

Not quite what I was looking for. I am not trying to find all of the notes in general that have summaries.

I’m trying to create a view of all of the summaries for the notes that are linked from the current note. So the empty double brackets take care of the “current note” bit. But unfortunately I have to manually add that to the note where I want the summaries.

I would prefer a generic pane that shows these summaries for the currently selected note. Similar to what the outlinks and backlinks and local graph panes do.

apiarian avatar Jun 21 '22 03:06 apiarian

I would love this feature as well: To have a dataview query (specifically, my tasklist) running on the right hand pane that queries the active pane. See https://github.com/blacksmithgu/obsidian-dataview/issues/710

ces3001 avatar Feb 08 '23 04:02 ces3001

This is probably implementable completely as an external plugin, as well, in case I don't get to it in a reasonable amount of time.

Any word on this? Would really be the holy grail for my workflow.

ces3001 avatar Feb 09 '23 22:02 ces3001

There is a way to do this currently, I just figured it out, but it requires manual refresh (easily done by mapping a hotkey to dataview refresh command): https://github.com/blacksmithgu/obsidian-dataview/issues/710#issuecomment-1435261055

ces3001 avatar Feb 18 '23 19:02 ces3001