Skip to main content
  1. Posts/

Dataview Basics

·200 words·1 min·
Table of Contents

🧶 Tags:: #🌱 Resources:: Vicky Zhao Links:: ==2022-11-01 - 14:59==

Dataview code for you to copy/paste!!
#

  1. To use dataview, type the following in any note: dataview
  2. TASKS
    1. a) Get all tasks in your vault: dataview Task *make sure you have a space after the word task!
    2. b) Get all tasks from notes with a specific hashtag dataview Task from [#TAG](https://www.youtube.com/hashtag/tag)
    3. c) Get all tasks from notes from a specific folder dataview Task from "FOLDER" *make sure you use double quotes around the folder name!
  3. LISTS
    1. a) Get a list of all notes with a specific hashtag dataview List from [#TAG](https://www.youtube.com/hashtag/tag)
    2. b) Use and / or to further filter the list: dataview List from [#TAG1](https://www.youtube.com/hashtag/tag1) and [#TAG2](https://www.youtube.com/hashtag/tag2) dataview List from [#TAG1](https://www.youtube.com/hashtag/tag1) or [#TAG2](https://www.youtube.com/hashtag/tag2)
    3. c) Use “FOLDER” to get a list from a specific folder (Use “FOLDER/SUBFOLDER” if you want to get more specific) dataview List from "FOLDER" dataview List from "FOLDER/SUBFOLDER"
    4. d) Use where contains to get notes that have a specific word/phrase in its title dataview List where contains(file.name, "TEXT YOU ARE LOOKING FOR")
  4. TABLES
    1. a) Get a table with headers dataview Table column1, column2
    2. b) Rename the column with AS dataview Table column1 as NEWNAME1, column2 as NEWNAME2
Varun.log
Author
Varun.log
The creator of Stashed.in who loves to make new things.

Related


Link Map
Pages Tags