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

Dataview Pane #1181

Open
apiarian opened this issue Jun 12, 2022 · 9 comments
Open

Dataview Pane #1181

apiarian opened this issue Jun 12, 2022 · 9 comments
Assignees
Labels
feature-request New feature or request.

Comments

@apiarian
Copy link

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 apiarian added the feature-request New feature or request. label Jun 12, 2022
@AB1908
Copy link
Collaborator

AB1908 commented Jun 14, 2022

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

@blacksmithgu
Copy link
Owner

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
Copy link
Owner

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.

@jroachgit
Copy link

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

@jroachgit
Copy link

jroachgit commented Jun 21, 2022

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.

@apiarian
Copy link
Author

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.

@ces3001
Copy link

ces3001 commented Feb 8, 2023

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 #710

@ces3001
Copy link

ces3001 commented Feb 9, 2023

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
Copy link

ces3001 commented Feb 18, 2023

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): #710 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request.
Projects
None yet
Development

No branches or pull requests

5 participants