From a123b739d3f042a23e4fb801a67ff19b1d11ec76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20B=C3=BCtow?= <1224732+snonux@users.noreply.github.com> Date: Fri, 20 Jun 2025 20:39:33 +0300 Subject: Add done and delete hotkeys --- internal/task/task.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'internal/task') diff --git a/internal/task/task.go b/internal/task/task.go index fb07333..f860b16 100644 --- a/internal/task/task.go +++ b/internal/task/task.go @@ -121,6 +121,16 @@ func Stop(id int) error { return run(strconv.Itoa(id), "stop") } +// Done marks the task with the given id as completed. +func Done(id int) error { + return run(strconv.Itoa(id), "done") +} + +// Delete removes the task with the given id. +func Delete(id int) error { + return run(strconv.Itoa(id), "delete") +} + // SetPriority changes the priority of the task with the given id. func SetPriority(id int, priority string) error { return run(strconv.Itoa(id), "modify", "priority:"+priority) -- cgit v1.2.3