From 5cdff2140dd9ef6065f1756759f07c89b2277eb6 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Mon, 16 Feb 2026 19:22:42 -0500 Subject: [PATCH] show message and refresh after adding task --- source/commands.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/commands.ts b/source/commands.ts index 55769a5..4cef504 100644 --- a/source/commands.ts +++ b/source/commands.ts @@ -130,9 +130,10 @@ export const commands: Command[] = [ hint: 'add ', description: 'add a new task', group: 'tasks', - run: async (args, {api, tasks, setTasks}) => { - const task = await api.quickAddTask({text: args}); - setTasks([...tasks, task]); + run: async (args, {api, setMessage, refresh}) => { + await api.quickAddTask({text: args}); + setMessage(`Added: ${args}`); + refresh(); }, }, { -- 2.51.2