Dataview query starting in the current folder

I’m currently migrating from Notion to Obsidian and dataview has been a huge help.

However, I often move notes around, which breaks my FROM queries. Is there a general way to use the folder of the current file as a source?

e.g. something like:

LIST FROM [[]].file.path

Thanks in advance!

1 Like

Instead of the FROM you could use WHERE file.folder = this.file.folder, or if you also want to look in subfolders do WHERE startswith(file.folder, this.file.folder)

4 Likes

Perfect, thank you! TIL this

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