Dataview

Hi! I’m trying to list all files where the current file is mention/link. I’ve achieved this with this query

dataview 
LIST WITHOUT ID file.inlinks WHERE file.name = this.file.name 

But I would like to list a complete line where the mention occurs. Any knows how can I do that? Thanks!

Dataview works with metadata, not with the full content.
There’re ways to using js inside dataviewjs… but it involves a complex search and technically a hard process (says a dumb in js).
Using dataview in regular way you only achieve that if you place that lines with the link as a bullet list.
Something like:

- This is just a sentence about nothing.
- This is another one but with a [[link]] to a file in my vault.

Then you can query the lists with [[link]] in the text and see all the content of these specific lists.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.