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

Provide dataview of individual tagged lines #23

Open
2 tasks
gammak opened this issue Feb 28, 2021 · 7 comments
Open
2 tasks

Provide dataview of individual tagged lines #23

gammak opened this issue Feb 28, 2021 · 7 comments
Assignees
Labels
feature-request New feature or request.
Projects

Comments

@gammak
Copy link

gammak commented Feb 28, 2021

Hi there, I am super excited about Dataview, it's already revolutionized my workflow. One question, though, is whether there's planned support (or already existing support) for dataviews of individual lines/headings based on tags? For instance, one of my common workflows looks like:

# Today's Note

## Tale of Two Cities #reading
- conflagration #worddefinitions
- [ ] Read 'War and Peace' #books
- France is wild

## Harry Potter #reading
- [ ] Check out 'Lord of the Rings' #books
- Muggle #worddefinitions

Ideally, I'd love to be able to set up queries in the following forms:

Reading:
'''dataview
sections from #reading // or something similar
'''

which could return something like:

Reading:

  • TodaysNote/Tale of Two Cities
  • TodaysNote/Harry Potter

(where each of thes is a link to the relevant heading, to deep-dive).

Also useful would be querying individual lines for tasks or tags, e.g.

Words:
'''dataview
list lines from #worddefinitions
'''

or

Books:
'''dataview
list tasks from #books
'''

to get references to those individual lines, a la:

Words:

  • conflagration
  • Muggle

Books:

  • Read 'War and Peace'
  • Check out 'Lord of the Rings'.

The existing page-based linking is super helpful for lots of cases, but for those small thoughts that don't have their own page, it'd be great to collate them as well.

@blacksmithgu blacksmithgu added the feature-request New feature or request. label Mar 1, 2021
@blacksmithgu blacksmithgu self-assigned this Mar 1, 2021
@blacksmithgu
Copy link
Owner

So to be precise, you're looking for per-"block" (to use Obsidian parlance) queries? That is on my TODO list (exposing blocks as something you can query over, similar to being able to query over individual tasks), I'm mainly just looking at figuring out the right syntax.

@gammak
Copy link
Author

gammak commented Mar 4, 2021

Yep, that sounds spot on, great to hear it's already being thought about! Thanks for the great work!

@savvyslog
Copy link

savvyslog commented Apr 17, 2021

Glad to see this is being considered! I've had basically the same idea of wanting to be able to list all lines/blocks with a given tag at the end (say, "#todo" or "#todo/now") so I can have auto-updated lists of different types or priorities of tasks.

Example:

- Read book
  - Read chapter one #todo/now
  - Read chapter two #todo

would have one task listed under #todo/now and two listed under "todo"

Loving the plugin so far! Keep up the great work.

@Peeja
Copy link

Peeja commented Oct 21, 2021

Ah, excellent, I'm glad to hear this is on the roadmap! For my use case, I'm importing my highlights from Readwise, and I'd like to be able to query for them individually (say, to pick one at random to display). They import as list items, with each book/article/etc. getting its own page.

@AB1908
Copy link
Collaborator

AB1908 commented Oct 18, 2022

You can now query lists and check for the tags in each list item. Can we consider this done?

@AB1908 AB1908 added this to done in Indexing Oct 18, 2022
@Lulullia
Copy link

You can now query lists and check for the tags in each list item. Can we consider this done?

What about querying normal lines? I'd like to be able to put tags or dataview fields anywhere to mark it as "needs work", so I can make a query and see only the lines in a document that needs work.

@AB1908
Copy link
Collaborator

AB1908 commented Feb 28, 2023

@Lulullia that is much harder to implement as it would require parser extensions. The native search plugin allows for this, however.

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
Development

No branches or pull requests

6 participants