Docs menu

Docs Use OpenTodo1.10.1

Labels and filters

The errand label view listing its tasks grouped by project.

On this page

Projects say where a task belongs. Labels say what kind of task it is, across all projects: @call, @errand, @waiting, @deep-work. Filters then let you ask questions like "every call I need to make this week".

Add a label to a task#

Pick whichever is quickest:

  • Type it in quick add: Phone the bank @call.
  • Select a task and press L, start typing, and press Enter. The picker stays open so you can add more.
  • Open the task and use Labels in the panel.

Press Enter to create a missing label. Chips show names on a soft tint. The One line column shows the chips that fit. Hover or focus a shortened name or +N to read the full names. In Detailed, hover or focus the group. In the task panel, select × to remove a label.

Labels are personal. In a shared project, other members don't see the labels you add.

See everything with one label#

Once you have a label, the Labels group in the sidebar lists your labels; it starts folded on a new device. The number of open tasks for each is on the labels page (g l) and in the label's header (in the sidebar with every count on). Select one to see all its tasks, grouped by project (or another way); a task you add there with quick add gets the label. Pin to sidebar in a label's menu (in the sidebar, on the labels page or in the label's header) adds it to Favourites at the top of the sidebar.

All next to Labels (or g l) opens the labels page, where you rename, recolour, reorder, merge and delete labels: see Manage labels.

Find tasks with a filter#

Open Filter in the sidebar (or press g f) and type a query. Results appear as you type, grouped by project. Rather not type? + Condition above the input builds the query for you (the builder).

The New view page with the query (@call | @errand) & due <= 7 days and the matching tasks below.

A query combines small pieces:

Piece Means Example
@name has this label @call
#name in this project #Work
##name in this project or its sub-projects ##Work
p1 … p4 priority p1
today, tomorrow, overdue, no date due then, or not at all overdue
due <= 7 days due within the next week due before friday
search: text words in the title or notes search: invoice
blocked, unblocked waiting for an open task, or not unblocked & today
available can be done now: not blocked, not waiting for an earlier step, not parked or starting later available & @phone
completed include completed tasks #Home & completed

Join them with & (and), | (or) and ! (not), and use brackets to group:

(@call | @errand) & due <= 7 days

That reads: tasks labeled call or errand, due within the next seven days. A few more:

  • #Work & p1 & due <= tomorrow: the most important work for today and tomorrow.
  • overdue & no project: overdue tasks still sitting in the Inbox.
  • @waiting & !#Work: everything you're waiting on, outside work.

Names with spaces go in quotes: #"Client A". Upper and lower case don't matter. If you mistype, a message under the box says where, and the previous results stay visible.

Press Enter to jump from the box to the first result, and Esc to go back. ↑ and ↓ in the box bring back your recent queries.

The full language, with ten worked examples, is in Filter queries.

Save a filter as a view#

When a query is useful, keep it: press s in the results, give it a name, and it appears under Views in the sidebar, and in Favourites until you unpin it. Its live count is in the Filters overview (g v) and its page header. Saved views sync to your other devices. See Views for grouping, sorting and dashboards.

Tips#

  • Labels for context work well: @call, @computer, @errand, @home. Then a view like @errand & due <= 2 days is your shopping list.
  • A @waiting label plus a pinned "Waiting on others" view makes follow-ups hard to forget.
  • Filters run on your device. They're instant, and they work offline.
  • Labels and saved views belong to one workspace, so the same name can exist in two of them.

Edit this page on GitHub