Filter queries
The New view page (g then f, New view in the views list or the sidebar's More) lists the tasks that match a one-line query such as:
On this page
@work & due <= tomorrow & p1
Queries run entirely on your device, over the data the app already holds: they work offline, make no network request, and the results update live as you edit tasks or as changes from your other devices arrive.
Grammar#
query := or
or := and ( "|" and )*
and := not ( "&" not )*
not := "!" not | "(" or ")" | term
term := "@" name label
| "##" name | "#" name project with / without sub-projects
| "p1" | "p2" | "p3" | "p4" priority
| ("due" | "created" | "deadline" | "start" | "completed") cmp date
| keyword
| "search:" text
| "notes:" text text in the task's note
| "origin:" text where the task came from
| "energy:" ("deep" | "medium" | "low") the energy a task asks for
| "assigned:" name the assignee is you (`me`) or that member
| "sector:" (sectorword | period) the task's time sector
| "section:" name the task is in a section of that name
| "workspace:" name the task's workspace
| "tracked" ["occurrence"] ("<" | "<=" | "=" | ">=" | ">") duration tracked time
| field ("<" | "<=" | "=" | ">=" | ">") value custom field
| "no" field custom field without a value
field := a word that is not a reserved word | '"' chars '"'
value := number | "true" | "false" | date | word | '"' chars '"'
cmp := "<" | "<=" | "=" | ">=" | ">" | "before" | "after"
date := "today" | "tomorrow" | "yesterday" | weekday | YYYY-MM-DD
| INT "days" | INT "days ago" | period
period := ("this" | "last" | "next") ("week" | "month")
| INT ("week" | "weeks" | "month" | "months") "ago"
weekday := "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday"
keyword := "overdue" | "today" | "tomorrow" | "no date" | "no project"
| "no labels" | "no time" | "no deadline" | "no start" | "completed" | "open" | "subtask"
| "someday" | "deferred" | "evening" | "morning" | "afternoon" | "blocked" | "unblocked" | "available" | "habit" | "recurring"
| "origin" | "no origin" | "tracked" | "tracked occurrence" | "energy" | "no energy" | "notes" | "no notes"
| "sector" | "no sector" | "carried" | "assigned" | "unassigned"
| "no section"
sectorword := ("this" | "next") ("week" | "month" | "quarter"), with a space or a hyphen
period := YYYY "-W" WW | YYYY "-" MM | YYYY "-Q" N a week, a month or a quarter
duration := INT ("m" | "min" | "mins" | "minutes")? | NUM "h" (INT ("m" | "min")?)?
name := word | '"' chars '"'
text := word | '"' chars '"'
Precedence and connectives#
!(not) binds tightest, then&(and), then|(or).@errand | @call & p1means@errand | (@call & p1).- Use parentheses to group:
(@errand | @call) & p1. &and|are the only connectives. There is no implicit "and":@work p1is an error, write@work & p1.- Whitespace between tokens is ignored, so
due<=tomorrowanddue <= tomorroware the same.
Names, quoting and case#
- A bare name (
@errand,#Work) runs until whitespace, a double quote, or one of the operator characters& | ! ( ) < > =. Any other character, including#,-,/,.and non-Latin letters, is part of the name. - Put names with spaces or operator characters in double quotes:
#"Client A",@"follow up". Inside quotes,\"is a literal quote and\\a literal backslash. - Keywords, comparison words, weekday names, label names and project names all ignore case:
#work,#Workand#WORKare the same. - In a label, project or section name,
*stands for any run of characters, none included:@home*matches "home" and "home-office",#*Client*every project with "client" in its name, andsection: "In *""In review" and "In progress".##Work*adds the sub-projects of every match. A new label or project that fits is picked up the next time the query runs. A pattern that fits no name warns like an unknown name. - In those names, quoted or not, a backslash escapes:
\*is a literal star and\\a literal backslash, so@to\*dois the label "todo" and@C:\\*every label starting with "C:". Any other backslash is just a backslash (@a\b). A name that is exactly the name of a label, project or section always means that one:@to*dois the label "todo" while it exists, so a query saved before wildcards keeps its meaning. Picking a name in the builder writes it with its escapes. - Wildcards belong to filter queries only. The
labelargument of the MCP toollist_taskstakes one label's exact name or id (or its plural), never a pattern:label: "to*do"is the label "to*do". For a pattern, use a filter in the app.
Terms#
| Term | Matches |
|---|---|
@name |
tasks carrying the label with that name |
#name |
tasks in the project with that name |
##name |
tasks in that project or in any of its sub-projects, at any depth |
p1 … p4 |
tasks with that priority (p1 is the highest, p4 the default, shown as no priority) |
due <cmp> <date> |
tasks whose due date compares as asked; a task without a due date never matches |
created <cmp> <date> |
tasks whose creation day, in your time zone, compares as asked |
deadline <cmp> <date> |
tasks whose deadline compares as asked; a task without a deadline never matches. deadline <= 3 days includes deadlines that have passed |
start <cmp> <date> |
tasks whose start date compares as asked; parked tasks and tasks without a start never match |
completed <cmp> <date> |
completed tasks whose completion day, in your time zone, compares as asked; open tasks never match. completed = last week is what you finished last week |
overdue |
due before today: the tasks of Today's Earlier group |
today |
due today |
tomorrow |
due tomorrow |
no date |
no due date |
no time |
a due date without a time of day |
no deadline |
tasks without a deadline |
no start |
tasks with no start date and not parked |
someday |
parked tasks |
deferred |
tasks whose start date is after today |
evening |
tasks marked for This Evening |
morning, afternoon |
tasks set to that part of the day, whatever their date; a task placed in Today only by its time does not match |
blocked |
tasks waiting for another task that is still open (Blocked by) |
unblocked |
tasks not waiting for any open task |
available |
tasks you can do now: not blocked, not waiting for an earlier step of a sequential project or section, not parked and not starting later. !available lists the other open tasks |
habit |
recurring tasks tracked as a habit; save habit as a view to list every habit with its streak (a graduated habit is in no view) |
recurring |
tasks with a repeat rule, habits and rules that repeat after completion included; save recurring & open as a view to review every repeating task, for example before you go away |
no project |
Inbox tasks (no project) |
section: name |
tasks in a section of that name, in any project, ignoring case (section: Review, section: "In review"). Projects can each have a section of the same name; all of them match. Two sections are joined with the usual or, as in example 32. An unknown name matches nothing and this device says so. section: with no name is an error |
no section |
tasks in no section: not in one, or in one that was deleted or belongs to another project. Combine it with a section by or to list the Backlog and the unsorted at once |
no labels |
tasks with no label |
subtask |
tasks that have a parent task |
completed |
completed tasks; the record a skipped habit day leaves is not one |
open |
open (not completed) tasks |
search: text |
title or notes contain the text, ignoring case; quote several words: search: "oat milk" |
notes |
tasks with a note: anything but blank space in the task's notes |
no notes |
tasks without a note |
notes: text |
tasks whose note contains the text, ignoring case; the title is not searched (use search: for both). Quote several words: notes: "permit office". On an encrypted account the note is read on your device, decrypted |
origin |
tasks that know where they came from: a captured page, an email, an issue, an import or an Obsidian note (see Where a task came from) |
no origin |
tasks without an origin |
origin: value |
tasks whose origin's provider is the value, ignoring case (origin: github, origin: linear, origin: todoist), or, for an origin without a provider, whose kind is (origin: url for captured pages, origin: email for mail, origin: obsidian for tasks from an Obsidian note); quotes allowed |
energy |
tasks with an energy set (Deep, Medium or Low) |
no energy |
tasks without one |
energy: value |
tasks whose energy is deep, medium or low, ignoring case; quotes allowed. Any other value is an error. The terms work whether or not Energy levels is on |
assigned |
tasks that have an assignee |
unassigned |
tasks with no assignee. !assigned is the same |
assigned: me |
tasks assigned to you |
assigned: name |
tasks assigned to a member of that name or email, ignoring case; quote a name with a space (assigned: "Sam Lee"). Two members with the same name both match. An unknown name matches nothing and this device says so. assigned: with no name is an error. A custom field named "assigned" is reached only through its quoted name |
sector |
tasks with a time sector: a week, month or quarter they are planned for |
no sector |
tasks without one |
carried |
tasks whose sector's period has ended before your current week, month or quarter (carried over) |
sector: value |
tasks whose sector is this week, next week, this month, next month, this quarter or next quarter (named on your date and first day of the week, so sector: this week follows you into the next week without editing the view), or exactly a period: sector: 2026-W44, sector: 2026-11, sector: 2026-Q4. Any other value is an error that names it. The terms work whether or not Time sectors is on |
workspace: name |
tasks of the workspace of that name, ignoring case (workspace: Home, workspace: "Side projects"); see Workspaces |
tracked |
tasks with at least one minute of tracked time, every member's entries counted and a running entry up to now; a repeating task counts every occurrence's entries |
tracked <cmp> duration |
tasks whose tracked time compares as asked: tracked > 1h, tracked <= 30m, tracked >= 1h30, tracked < 1.5h, tracked = 0; a bare number is minutes |
tracked occurrence, tracked occurrence <cmp> duration |
the same, with a repeating task's current occurrence only: the entries since it was last completed or skipped, the time its row shows against the estimate. tracked occurrence > 1h on a task that does not repeat is tracked > 1h |
name <cmp> value |
tasks whose custom field of that name compares as asked (see Custom fields) |
no name |
tasks of a project that defines the field, with no value for it |
Custom fields#
A custom field is named like a project or label, ignoring case, in every project you see that defines a field of that name; quote names with spaces: "Order date" <= friday. The words the grammar already uses (due, created, deadline, start, completed, no, origin, tracked, energy, notes, assigned, section, the keywords and p1 to p4) keep their meaning, so a field named "due" is reached only through its quoted name, "due" <= tomorrow. How a field compares depends on its type:
| Type | Terms |
|---|---|
| Number | cost > 100, cost <= 99.5, cost = 0 |
| Date | "Order date" <= friday, "Order date" = this week: the date grammar above |
| Text, link, choice | client = "Acme" only, ignoring case; client > "A" is an error |
| Checkbox | paid = true, paid = false (an unset box is unchecked) |
no client lists the tasks of projects that define Client and have no value for it. A value is only compared while its task is in a project that defines the field. A name that no project defines is not an error: the view warns No field named "budget" and the term matches nothing.
Open, completed and deleted tasks#
A query matches open tasks only, unless completed or open appears somewhere in it, or it compares the completion date (completed >= this week). completed on its own lists only completed tasks, p1 & completed the completed priority-1 tasks, and completed | open both. Deleted tasks never match, and neither does the record a skipped day of a habit leaves (it is neither completed nor open). Parked and deferred tasks match like any other unless you exclude them: !someday, !deferred. Like the other cross-project views, the New view page leaves out tasks of archived projects, and so does a routine that finds tasks with a query or a saved view, unless its Find tasks step has Archived projects on. The filter language has no term for archived projects.
Dates#
Dates compare calendar days in your local time zone, the same way Today and Upcoming do; the time of day is ignored.
| Expression | Meaning (when today is Saturday 2026-10-10) |
|---|---|
today, tomorrow, yesterday |
2026-10-10, 2026-10-11, 2026-10-09 |
monday … sunday |
the next such day, today included: friday is 2026-10-16, saturday is 2026-10-10 |
2026-12-01 |
that date |
3 days |
three days from today: 2026-10-13 |
7 days ago |
seven days before today: 2026-10-03 |
Periods#
A period stands for several days. Weeks start on the first day of the week you chose in Settings → Language and region → Date and time (the browser's choice until you pick one), the same on all your devices; months are calendar months.
| Expression | Days (when today is Friday 2026-10-16 and weeks start on Monday) |
|---|---|
this week, last week, next week |
2026-10-12 to 10-18, 2026-10-05 to 10-11, 2026-10-19 to 10-25 |
2 weeks ago |
2026-09-28 to 10-04 (1 week ago is last week) |
this month, last month, next month |
October, September, November 2026 |
3 months ago |
July 2026 |
Against a period, = means within it, < (before) before its first day, <= up to its last day, > (after) after its last day and >= from its first day. A single day works the same way, so due = this week lists everything due this week, completed >= last month everything completed since the first of last month, and due < this month everything due before the first of this month. Every date term takes periods: due, created, deadline, start and completed. A saved view keeps the period itself, so a view of completed = last week always shows the previous week. People sharing a project may start their weeks on different days; each sees their own week.
before is the same as < and after the same as >. today on its own is the keyword (due today); due = today is the same comparison written out, and due <= today also includes overdue tasks. Only English weekday names are accepted.
Workspaces#
A filter shows the workspace you are in, like every list. A query with a workspace: term anywhere looks at the tasks of every workspace instead, and the term picks the ones you want: (workspace: Home | workspace: Work) & due = this week lists both, whichever workspace you are in, and !workspace: Work & today lists today's tasks everywhere but Work. Labels and projects in such a query are matched by name in every workspace. A task belongs to its project's workspace; a task without a project belongs to the workspace it was added in. A name that matches no workspace warns No workspace named "…", like a label. A saved view that names a workspace counts every workspace's tasks in the sidebar too.
Labels and projects that change#
Names are looked up every time the query runs, so renaming a label or project is picked up immediately. When several labels or projects share a name (two devices can create the same name while offline), the term matches any of them. A name that matches nothing is not an error: the view shows a warning such as No label named "errands", that term matches no task, and the rest of the query still works. A saved or remembered query therefore survives a rename or deletion.
Errors#
A query that does not follow the grammar shows a message under the input, and the previous results stay on screen until the query is valid again. Positions count characters from 1:
| Query | Message |
|---|---|
@errand & |
Expected a term after "&" at position 9 |
(p1 | p2 |
Missing ")" at end of query |
@work p1 |
Expected "&" or "|" before "p1" at position 7 |
p1 & urgent |
Unknown term "urgent" at position 6 |
p5 |
Priority must be p1, p2, p3 or p4 at position 1 |
due today |
Expected a comparison (<, <=, =, >=, >, before or after) after "due" at position 1 |
due > 7 |
Expected "days", "weeks" or "months" after "7" at position 7 |
due = last year |
Expected "week" or "month" after "last" at position 7 |
completed > 2 weeks |
Expected "ago" after "weeks" at position 15 |
no & |
Expected "date", "project", "labels", "time", "deadline", "start", "origin" or a field name after "no" at position 1 |
cost > |
Expected a value after ">" at position 6 |
tracked > soon |
Expected a duration such as 30m or 1h30 after ">" at position 11 |
workspace: & p1 |
Expected a workspace name after "workspace:" at position 1 |
section: & p1 |
Expected a section name after "section:" at position 1 |
energy: high |
Energy must be deep, medium or low at position 1 |
sector: 2026-W60 |
Unknown time sector "2026-W60" at position 1; use this week, next week, this month, next month, this quarter, next quarter or a period such as 2026-W44 |
notes: & p1 |
Expected text after "notes:" at position 1 |
An empty query shows a short usage hint and no results.
A query can be at most 4,096 characters long and nest at most 64 levels of ( and ! (siblings such as (p1) & (p2) count once). A longer one is refused with Query is too long: 5000 characters, at most 4096, a deeper one with Too deeply nested at position 65; use at most 64 levels of "(" and "!". The server refuses the same queries when a view is saved through the API.
The New view page#
You can also type a query straight into the search box (Ctrl+K): it lists the matching tasks and offers to open them as a new view.
gthenfopens the page with the cursor in the query input, at the bottom of the filter panel. Results update about 150 ms after you stop typing. Under the header, the toolbar repeats the query's conditions in words, with the filter and display buttons on the right.- Results are grouped and ordered as a saved view would show them: by project (Inbox first, then projects in sidebar order, each heading showing the project's path,
Work › Client A), then by due date and priority. Display options changes the grouping, the order, the layout, completed tasks and what rows show before you save. - Enter in the input runs the query at once and moves to the first result; Esc returns to the input. In the list, the usual keys work:
j/k, Enter to open,cto complete,1–4for priority,Lfor labels, Delete. - ↑ / ↓ in the input step through the last 20 distinct queries you ran on this device. The history lives in the browser's local storage for the app, is never synced, and is cleared when you sign out.
- The draft is kept. The query and the display options stay on this device, per workspace, while you look at another page and across a reload. Saving the view clears the draft. A link with a query (
/views/new?q=p1) replaces the draft's query; ↑ then recalls the one it replaced. Clear in the filter panel's header empties the query and resets the options, with Undo while its message is shown. Like the history, the draft is never synced or exported and is cleared when you sign out.
Build a filter without typing#
In the filter panel, above the query input, the builder shows the same query as conditions you can read: Label is errand, Due on or before tomorrow, Priority is P1, No project.
- Conditions. + Condition opens a small dialog: choose what to filter on (label, project, priority, one of the five dates, a state such as Due earlier or Waiting on another task, text in the title or notes, origin, section, workspace (with more than one), tracked time (turn off All occurrences for a repeating task's current occurrence), energy, time sector or a custom field), then its value. Labels, projects and sections are picked from a searchable list. Click a condition to change it.
- Groups. A group is a block headed All of these (every condition must match,
&) or Any of these (one is enough,|). + Group adds one inside, up to three levels deep. Change the heading to switch between the two. - Not. The Not switch in a condition's dialog, or the Not button on a group, matches the tasks it would otherwise leave out (
!). - Keyboard. Tab reaches every control. Inside a group, the arrow keys move between conditions, and Delete or Backspace removes the focused one.
- Both ways. The query input stays under the builder (Edit as text jumps to it). Every change in the builder rewrites it, with only the parentheses the grammar needs, and anything you type that parses updates the builder. What is saved is always the query text, so saved filters,
otand the API see exactly what they saw before. - What it cannot show. A double
!!, or groups nested deeper than three levels, stays editable as text; the builder shows a short notice instead. - Show or hide it. The filter button at the right of the toolbar folds the panel away; the conditions stay in the toolbar. The choice is kept on this device, separately for the New view page (shown by default) and for saved views (hidden by default).
The panel's header says how many tasks the query matches.
Saving views#
A query you come back to can be saved as a view: it keeps the query and its display options, and syncs to all your devices like your tasks do.
- Save. On the New view page, press
swhile the results have focus (or choose Save as view). The header becomes a card: type a name and press Enter, or Esc to cancel. The view is created with the current query, grouping, order and display options, listed under Views in the sidebar and pinned to Favourites, and opened at/views/<id>. Saving works offline; other devices show the view after they sync. - Edit. A view shows its conditions in the toolbar. The filter button, a condition chip or
/opens the same filter panel as the New view page, with a count for the changed query before you save. Enter or Save saves a changed query for every device, Esc discards the change. A query that does not parse shows the error and is not saved. - Display options. The sliders button at the right of the toolbar opens them, reachable with Tab: List or Board, One line or Detailed rows (One-line and detailed rows) (one column of cards per group), Group by (project, due date, priority, label, none), Order by (due date, priority, manual order, created, deadline, title), Completed tasks (hide or show) and Show on rows (date, project, labels, estimate, assignee, deadline, start, origin, energy; with Board, also Notes on cards: two lines of each card's notes as plain text, off by default); the direction is under More options. Defaults are list, group by project, order by due date ascending with undated tasks last, completed hidden, everything shown. Grouping by due date shows Earlier, Today, Tomorrow, then each later date and finally No date; grouping by label lists a task under each of its labels. For priority, descending puts priority 1 first. Manual order is the view's own order: drag a task within its group, or move it with Alt+↑ / ↓ (see Group and order a list); the New view page does not offer it until the view is saved. Show completed lists finished matches too, unless the query already names a state (
completed,openor a completion date); the sidebar still counts open tasks. Every choice is stored on the view at once and syncs. - Sidebar. The Views group appears with your first saved view. Pinned views are listed under it with a live count of their open tasks, computed on the device. The
⋯menu of a view renames, moves it up or down, unpins or deletes it, and sets it as this device's start view.gthenvopens the overview of every view, pinned or not, where views can be pinned again. - Start view. Each device can open on a different view: choose it in Settings → General → Start view and briefing or from a view's menu. The choice stays on the device (it is not synced). If the saved view is deleted, for example on another device, the app opens the Inbox and says so once.
- Dashboards. New dashboard in the overview creates a view that shows up to six other views side by side as panels, each with its name, open-task count and first ten tasks, updating live. Add panels from the header, reorder or remove them with Arrange. Tab / Shift+Tab move between panels,
j/kselect a task inside one, Enter opens it (or the view when nothing is selected) andoopens the panel's view. A panel whose view was deleted shows View removed with a button to remove it. Panels stack on narrow screens. A panel whose view has an on-drop rule (set with Rule in Arrange) is a drop target: dragging a card onto it, orShift+→/Shift+←on the selected card, applies the rule (labels added or removed, priority, a due date of today, tomorrow, next week or none, Someday or no start, a project and section, complete or reopen) as one undoable change; the rule's wording is the panel's description, and panels without a rule take no drops. A task that still does not match the panel's filter afterwards stays shown there, marked Not matching, until you leave the board. New board offers an empty board or the Eisenhower matrix: the filters(p1 | p2) & (due <= tomorrow | deadline <= tomorrow),(p1 | p2) & !(due <= tomorrow | deadline <= tomorrow) & !someday,!(p1 | p2) & (due <= tomorrow | deadline <= tomorrow)and!(p1 | p2) & !(due <= tomorrow | deadline <= tomorrow) & !somedaywith the rules priority 1 and today, priority 2 and next week, priority 3 and today, priority 4 and no date, on one pinned board.
A saved view evaluates its query exactly like the New view page: open tasks only unless completed or open appears, tasks of archived projects left out, unknown names reported as warnings. If a view was saved by a newer version with a term this version does not understand, it shows the parse error instead of wrong results. When two devices change the same view while offline, each option keeps the newer value: a grouping changed on one device and a sort changed on the other both survive, and so do a layout and the properties a view hides. A dashboard's panel list is replaced as a whole, so concurrent panel edits keep the newer list; so is a view's on-drop rule. Scripts can manage views through /api/v1/views (see docs/api.md); the server checks that the query parses with the same grammar.
Examples#
1. Work due by tomorrow, high priority#
@work & due <= tomorrow & p1
2. Anything overdue that is not filed in a project#
overdue & no project
3. Errands or calls, outside the Work project#
(@errand | @call) & !#Work
4. Everything under Work, including its sub-projects, due this week#
##Work & due <= 6 days
5. Tasks for a client whose names contain spaces#
#"Client A" & @"follow up"
6. Captured in the last week and still unscheduled#
created > 7 days ago & no date
7. Due on Friday, either priority 1 or 2#
due = friday & (p1 | p2)
8. Find a task by a phrase in its title or notes#
search: "oat milk" | search: groceries
9. Completed subtasks of the Home project#
#Home & subtask & completed
10. Due before the end of November, unlabelled, with no fixed time#
due before 2026-12-01 & no labels & no time & !today
11. A deadline this week, but no plan yet#
deadline <= 6 days & no date
12. Waiting on others, without the parked ones#
@waiting & !someday
13. Waiting for (save it as a view)#
blocked
14. What can be done today#
unblocked & today
15. Habits still to do today#
habit & due <= today
16. What I finished last week#
completed = last week
17. Work done this month, high priority#
##Work & completed >= this month & (p1 | p2)
18. Expensive renovation items ordered by Friday#
#"Home renovation" & cost > 1000 & "Order date" <= friday
19. Quotes still missing a client#
status = "Quote" & no client
20. Open issues from GitHub#
origin: github & open
21. Captured pages and mail still unfiled#
(origin: url | origin: email) & no project
22. Anything I have spent time on#
tracked
23. Over an hour tracked and due by today#
tracked > 1h & due <= today
24. Work not started yet#
!tracked & #Work
25. Due this week at home and at work, from any workspace#
(workspace: Home | workspace: Work) & due = this week
26. Urgent side projects#
workspace: "Side projects" & p1
27. What I can do now with a phone#
available & @phone
28. The end of the day: easy tasks for today#
energy: low & unblocked & today
29. Renovation tasks with notes#
notes & #Renovation
30. Urgent tasks nobody wrote anything down for#
no notes & p1
31. Mine, or nobody's yet#
assigned: me | unassigned
32. Everything in review or the backlog#
section: Review | section: Backlog
33. Repeating chores that ran over this time#
tracked occurrence > 30m & no date
34. Every backlog project, including the ones added later#
##backlog* & p1