Notion app logo
Struggling to stay organized and effective? Learn to master your time and tasks with the Effectively Notion course!

Get list items containing a tag with Obsidian and Dataview

How to get a list of items containing a specific tag with Obsidian and Dataview.

2022-10-22

I use Obsidian for interstitial journaling and wanted to list all of my specific list items containing the #journal tag.

This DataviewJS snippet gets all items where they include1 a specific tag (#journal):

//```dataviewjs
dv.list(dv.pages().file.lists.where(t => t.text.includes("#journal")).map((t ) => t.text))
//```

Being able to query individual list items is a power boost for anyone using Obsidian for interstitial journaling and keeping their journal entries in a daily note!

Footnotes

  1. It doesn't have to be a tag, includes is a JavaScript string function, which means you could @ mention something, filter by some thing that could be queried with a Regular Expression or even link to another file!

Photo of Chase Adams

Hey, I'm Chase. I help aspiring entrepreneurs and makers turn their ideas into digital products and apps.

Freebies

Vector Arrow Scribbles
banner image for figma vector arrows scribbles

A figma community project of vectorized hand-drawn arrows.

Go To Figma
Vector Line Scribbles
banner for figma vector line scribbles

A figma community project of vectorized hand-drawn lines.

Go To Figma
Vector Shape Scribbles
banner image of figma vector shapes scribbles

A figma community project of vectorized hand-drawn shapes.

Go To Figma

Subscribe to my Newsletter

Every other week I publish the Curiously Crafted newsletter.

In it, I explore the intersection of curiosity and craft: the people who make stuff, what they make and the way they pursue the craft of making.

Online

I'm on almost all social media as @curiouslychase.

The curious logo of Chase Adams: glasses and a bow tie.stay curious.