From a60fd026bcdf318b26024239ff6a5e88de173104 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Wed, 11 Feb 2026 10:11:02 -0500 Subject: [PATCH] add support for arbitrary filters --- README.md | 1 + source/commands.ts | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/README.md b/README.md index 37d4d50..b123c95 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,7 @@ dewy | `add ` | Add a task via quick add | | `done ` | Complete a task by its number | | `project ` | View tasks in a project | +| `filter ` | View tasks matching a Todoist filter | | `today` | View today's tasks | | `home` | View the home filter | | `refresh` | Reload tasks | diff --git a/source/commands.ts b/source/commands.ts index de07fb7..8759098 100644 --- a/source/commands.ts +++ b/source/commands.ts @@ -47,6 +47,14 @@ export const commands: Command[] = [ await refresh(); }, }, + { + prefix: 'filter ', + hint: 'filter ', + run: async (args, {setMessage, setView}) => { + setView({type: 'filter', query: args}); + setMessage('⊳ filtered'); + }, + }, { prefix: 'refresh', hint: 'refresh', -- 2.51.2