Skip to main content

Custom filter

The custom filter gives you granular control over what is displayed in a view. The custom filter is organized into two categories: groups and rules.

  • Filter group - A collection of filter rules
  • Filter rule - A requirement that must be met for a vault file to be displayed by a view

Filter groups

Add a group

To add a group, click the add filter group button.

Add filter group

Delete a group

To delete a group, click the delete filter group button.

Delete filter group

Reorder groups

To reorder groups, click and drag a group and drop it onto another group.

Reorder filter group

You may also do this from outside the custom filter modal.

Reorder filter group

Rename a group

To rename a group, select a group and then change the text found in the input field.

Rename filter group

Set a group as sticky

A sticky group is a group that remains enabled even when another group becomes enabled.

  1. Hold ctrl (Windows/Linux) or cmd (Mac)
  2. Click a group to set it as a sticky group
Set sticky group

Unset a group as sticky

  1. Hold ctrl (Windows/Linux) or cmd (Mac)
  2. Click a group to unset it as a sticky group
Unset sticky group

Filter rules

Add a rule

To add a rule, click the add filter rule button.

Add filter rule

Delete a rule

To delete a rule, click the rule actions button.

Delete filter rule

Then click delete.

Delete filter rule

Duplicate a rule

To duplicate a rule, click the rule action button.

Duplicate filter rule

Then click duplicate.

Duplicate rule

Toggle a rule

To enable a rule, click the toggle switch.

Toggle filter rule

To disable a rule, click the toggle switch again.

Toggle filter rule

Logical operators

Filter rules can be combined using the logical operators: and, or

Logical operator

When and is selected, both rules must be true for a file to be displayed.

When or is selected, either rule may be true for a file to be displayed.

Filter rule types

NameDescription
propertyA property found in the frontmatter of a markdown note
folder nameA folder name
file nameA file name
contentThe text found in a markdown note, excluding the frontmatter

Property

This rule only applies to markdown files and will not affect any other types of files.

NameDescription
property typeThis matches an Obsidian property type
property nameThe name of the property
conditionThe filter condition
valueSome text to compare
match when property doesn't existWhen true, markdown files that do not have the selected property name will be unaffected by this rule

Obsidian property types

  • text
  • number
  • list
  • checkbox
  • date
  • datetime

Filter condition options

  • is
  • is not
  • contains
  • does not contain
  • starts with
  • ends with
  • exists
  • does not exist

Folder name

NameDescription
conditionThe filter condition
folder nameThe name of the folder
include subfolderWhether subfolders should be included

Filter condition options

  • is
  • is not

File name

NameDescription
conditionThe filter condition
valueSome text to compare

Filter condition options

  • contains
  • does not contain
  • starts with
  • ends with

Content

Content is the text that appears in a markdown file, excluding the frontmatter.

This rule only applies to markdown files and will not affect any other types of files.

This rule can be used to filter by tags that appear in the body of a markdown note instead of the frontmatter.

This is a premium feature.

NameDescription
conditionThe filter condition
valueSome text to compare

Filter condition options

  • contains
  • does not contain
  • ends with
  • is empty
  • is not empty