Chase AdamsChase Adams
AboutContentPromptsPrototypesNewsletter

Dataview (Obsidian)

Essays and updates on product, engineering, and AI by Chase Adams.

1 minute read

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.

First Cohort
No Coding Experience Required

Build Your Website with AI—No Code Required

Learn to create and deploy professional websites using ChatGPT and Claude. Go from complete beginner to confident website builder.

Start Building Today

Post Details

Published
Oct 21, 2022
Share
ChatGPT

Latest Posts

Local AI Coding Tools

Local AI Coding Tools

A comprehensive guide to AI-powered coding tools for local development.

AboutAI Workflow SpecContentStacksNewsletterPromptsRSS