CinnabarOpen the app
Reference

Filter language

Every field, operator, and value you can use in a Cinnabar filter, with examples.

A filter is a line of text that says which tasks to show. Views use filters, and so does the quick filter (F). For a gentler introduction, see Filters and views.

Combining conditions

Write Means
open & #calls Both: & means and
#calls | #admin Either: | means or
!#calls Not: ! in front
(#calls | #admin) & open Brackets group conditions

An empty filter matches every task, completed ones included.

Fields

Field Type Notes
title text
notes long text
status open or done Usually written as the words open and done
do date The do date (also do_date)
due date The due date (also due_date)
deadline date
completed date and time When the task was completed (also completed_at)
created date and time When it was created (also created_at)
updated date and time When it last changed (also updated_at)
tags tags Usually written as #tag
inbox yes/no In the Inbox
someday yes/no Parked in Someday
repeats yes/no Has a repeat. Read only: a view filtered by it can’t take drops
parent task Use no parent for top-level tasks
child_count number How many subtasks it has
open_child_count number How many of its subtasks are open
depth number How many tasks are above it: 0 for a top-level task
created_by, updated_by text The name of the device that made or last changed it

Your own properties are fields too, by their key (shown as Key in filters in Settings → Properties): priority = P1, estimate < 1h.

Inherited fields (the Inbox, Someday, due date, and deadline by default, and any property you mark as inherited) are compared by the value the task shows, its own or its parent’s.

Status and yes/no fields

Write Means
open Not completed
done Completed
inbox In the Inbox
!someday Not in Someday
repeats Has a repeat
urgent A yes/no property urgent is yes
urgent = no It is no. = yes, = true, and = false work too

A yes/no field is never empty: not set counts as no. So no urgent isn’t allowed; write !urgent.

Comparisons

Operator Means Example
= Equals energy = high
!= or ≠ Doesn’t equal energy != low
< <= > >= (or ≤ ≥) Before, after, less, more do <= today
in [ … ] Is one of energy in [high, medium]
not in [ … ] Is none of energy not in [low]
contains Text contains, ignoring case; or a list holds a value title contains "invoice"
has_any [ … ] Holds at least one of tags has_any [work, "deep work"]
has_all [ … ] Holds all of context has_all [Laptop, Phone]
has_none [ … ] Holds none of tags has_none [someday]
in or within a range Falls in a period deadline within next 7d
no x Is empty no do
has x Is set has deadline

Ordering works on numbers, durations, dates, and select properties. A select property compares by the order of its options, highest first: with options P1, P2, P3, priority >= P2 matches P1 and P2.

A task with an empty field never matches =, <, >, in, within, contains, has_any, or has_all on that field. It does match !=, not in, and has_none.

Tags

#work matches tasks tagged work. no tags matches tasks with none. Combine as usual: #work & !#someday.

Text and titles

Put text with spaces in double quotes: title contains "call mom". title contains ignores case.

In the quick filter, plain words with none of the filter’s symbols search titles, so call mom means title contains "call mom". In a view’s filter, write the full form.

Because open, done, inbox, someday, and repeats are filters on their own, typing one of them in the quick filter doesn’t search titles. Use title contains "open".

Dates

Write a fixed date as 2026-10-05. Relative dates are worked out each time the view is shown:

Write Means
today, tomorrow, yesterday Those days
today+3d, today-3d Three days from today, three days ago
start_of_week, end_of_week The first and last day of this week
start_of_month, end_of_month The first and last day of this month
now This minute
now+2h, now-30m Two hours from now, 30 minutes ago (whole hours or minutes)

Weeks start on the day set in Settings → General (Monday unless you change it).

Periods go with in or within:

Write Means
this_week, next_week This week, next week
this_month This month
next 7d The next seven days (any number of days works)
past 7d The last seven days
next 3h, past 3h The next three hours, the last three hours (any number of hours works)

Examples: do in this_week, deadline within next 7d, completed within past 7d, due within next 3h.

now compares to the minute. due < now matches a task past its due time: a due date with a time from the minute after that time, and a due date without a time once its day is over. Against now, a date without a time counts as its whole day, so a task due today with no time matches due <= now and due >= now all day, and due < now from tomorrow. do <= now+2h matches what is to be done in the next two hours. A list or sidebar count whose filter names now updates itself each minute while the app is open.

Durations

Write durations as 45m, 2h, 1h30m, 1h 30m, or 1h30, or a plain number of minutes such as 90. Words (1 hour), decimals (1.5h) and days aren’t accepted in filters, though quick entry accepts words.

estimate < 1h 30m
estimate >= 45m

The tree

Write Means
under:"Plan trip" Anywhere below the task titled “Plan trip”
under_or_self:"Plan trip" That task and everything below it
no parent Top-level tasks
has parent Subtasks

Comments

A # followed by a space starts a comment that runs to the end of the line:

no do & no parent   # undated top-level tasks

More examples

do <= today & open
do in this_week & open & (#work | #errands | priority >= P2)
under:"Home office" & !done
no do & no parent
open & inbox & no do
estimate < 60m & energy = high
context has_any [Laptop] & !done

Raw SQL

For what the language can’t say, write a piece of SQL inside sql:"…", as one condition among the others:

open & sql:"length(title) > 40"
sql:"open_child_count >= 3"
sql:"do_date <= date(:today, '+3 days')"

The SQL runs against one row per task. It can name the task’s columns by their full names (title, notes, status, do_date, due_date, deadline, completed_at, created_at, your property keys, depth, child_count, open_child_count) and use SQLite’s functions. Tags are a JSON list, so read them with json_each.

These names stand for dates, worked out each time the view is shown: :today, :tomorrow, :yesterday, :start_of_week, :end_of_week, :start_of_month, :end_of_month. :now is the current minute as an instant, to compare with the instant columns due_at, deadline_at, and completed_at: sql:"due_at < :now".

A fragment may only read. It can’t contain ;, statements, or comments, and the app refuses any fragment SQLite might fail to run, saying what to write instead (for example total() instead of sum()). A view with raw SQL can’t work out how to change a dropped task, so it isn’t a drop target unless you give it rules.

In the view editor, Show SQL under the Text tab shows any filter as SQL, which is a good starting point.