Dataview (Obsidian)
10/21/2022
Dataview is an Obsidian plugin that I use heavily for fetching data from all of my files and rendering them as lists to make it easier to reflect on topics, interstitial journal or roll up tasks by project.
- Javascript Code Reference
- Get all links to the current file with Obsidian and Dataview
- Get list items containing a tag with Obsidian and Dataview
Get all pages containing a tag
//```dataviewjs
dv.list(dv.pages("#places").file.link)
//```
This will get all pages that contain the tag #people
Notes that were created on the current day
// ```dataviewjs
dv.header(2, `Notes made on the ${moment(new Date()).format("DD")} day`)
dv.list(dv.pages()
.filter(page =>
moment(page.file.cday.ts).format("DD") === moment(new Date()).format("DD")).file.link)
// ```
This allows me to see all notes that were ever created in the same day's date (28th of any month, for example) so that I always see all of my notes in a month's time.
This Article is Still in Progress
This post is a work in progress and not yet complete. If you're interested in reading the full article, let me know!
Want to Read It? Your interest helps me prioritize which articles to finish first. Click below to tell me you want to read this article when it's complete.