How do I view a list of untagged notes (and create other dynamic filters)?

Introduction

“Smart Views" are user-made dynamic folders that organize your notes according to predefined filters.

For example, suppose you wanted to see a list of all notes whose title starts with “Foo”. You can do this by creating a Smart View.

Creating A Smart View

  1. Create a new folder by clicking the + icon.
  2. Copy and paste the following Smart View syntax as the folder name:
    !["TODO", "title", "includes", "todo"]
  3. Press enter on your keyboard.

At this point, you should see an item called "TODO" under Views. You can select this item to view a list of your notes whose title contains the word "todo".


Understanding The Smart View Syntax

Smart Views can be used to construct any kind of simple query. The components of the Smart View syntax are as follows:

!: Indicates the start of a Smart View

[...]: A JSON array

  • The first item in the JSON array is the display label.
  • The second item is the note property you are targeting.
  • The third is the comparison operator.
  • And the last is the expected value.

More Examples

Show all notes that have tags that start with the letter b:

!["B-tags", "tags", "includes", ["title", "startsWith", "b"]]

Show all notes that have tags Blog or Ideas:

!["Blog or Ideas", "tags", "includes", ["title", "in", ["Blog", "Ideas"]]]

Show all notes whose title starts with TODO:

!["TODO", "title", "startsWith", "TODO"]

Show all notes whose title includes the word TODO:

!["TODO", "title", "includes", "TODO"]

Show notes that are pinned:

!["Pinned", "pinned", "=", true]

Show notes that are not pinned:

!["Not Pinned", "pinned", "=", false]

Show notes that have been updated within the last day:

!["Last Day", "updated_at", ">", "1.days.ago"]

Show notes whose text has more than 500 characters:

!["Long", "text.length", ">", 500]

Show notes that have the tag Todo and Urgent:

!["Urgent Todos", "tags", "includes", ["title", "in", ["todo", "urgent"]]]

Compound Predicates

You can use compound and/or predicates to combine multiple queries. For example, to get all notes that are pinned and that have “Prevent Editing” on:

!["Pinned & Locked", "ignored", "and", [["pinned", "=", true], ["locked", "=", true]]]

To get all notes that are protected or pinned:

!["Protected or Pinned", "ignored", "or", [["content.protected", "=", true], ["pinned", "=", true]]]

Attributes

Here are a list of note attributes that can be queried:

  • title
  • title.length
  • text
  • text.length
  • tags
  • updated_at
  • created_at
  • pinned
  • content.protected

If constructing a filter that queries tags, you can use the following tag attributes:

  • title
  • title.length
  • updated_at
  • created_at

Note that Smart Views always query notes, and so the query you're building refers to notes firstmost. You reference tags by referring to a note's tags:

!["B-tags", "tags", "includes", ["title", "startsWith", "b"]]

Get all notes whose tags includes a title that starts with the letter b.

Operators

Here are a list of operators that can be used to construct filters. The operator is typically the third parameter in the filter syntax.

  • =
  • >
  • <
  • >=
  • <=
  • startsWith
  • in ("whether a value is in a list of values")
  • includes ("includes sub filter")
  • matches (regex pattern)
  • and (for compound filters)
  • or (for compound filters)

Need help?

Visit our dedicated forum thread on smart tags for help with constructing your own custom queries.

Other ways to get help

Browse or post to the forum
Recommended for non-account related issues.
Join the Standard Notes Slack group
Recommended for small talk.
Join the Standard Notes Discord group
Recommended for small talk.
Send an email to help@standardnotes.com
Recommended for account related issues.