Dataview Plugin
An Obsidian Plugin that allows for a "query" to be run on my notes. Part of my Smart Note Taking system to create Smart & Automatic Folders (inboxing & indexing).
On my 🏡 Digital Garden Home ✅ 🌀🌐, I include a dataview table with a Digital Garden Update History Code Block that shows the 10 most recent notes I've updated.
In Sources - Books & Articles, I include a table for books (non-fiction & fiction) and articles to keep a booklist, or library, of the resources I've added to my digital garden.
In each of my main topic pages, I include a table showing the notes related to that topic. Here's an example from Mind & Well-Being:
Once the Dataview plugin has been installed in the Community Plugins, you can activate it by typing three ticks (the ~ key) and then adding Syntax.
Here's the code for the above, you just need to add the three ticks and remove the space from # and mind/well-being:
dataview
TABLE
Updated,
growth-level AS "Growth Level"
FROM # mind/well-being
SORT file.mtime DESC
And a screenshot so you can see the symbol to control it.
The Syntax I use regularly are:
- FROM
- WHERE
- LIMIT
- more to be added...
There's a community builder that might help out here too:
https://s-blu.github.io/basic-dataview-query-builder/
Or, as an alternative, you can always ask ChatGPT or NotebookLM. I often use AI to get the syntax for dataview and then tweak it as needed.
Personally, I've found that NotebookLM does a better job than ChatGPT because I was able to include the Dataview instruction manual as a source in the notebook, which gave much more sophisticated and streamlined answers.