i3blocks-contrib icon indicating copy to clipboard operation
i3blocks-contrib copied to clipboard

taskw blocklet doesn't work well with deleted tasks

Open mhalano opened this issue 2 years ago • 1 comments

Expected behavior

When I delete a task, shouldn't show up in the blocklet anymore.

Actual behavior

The task was completed (actually deleted before completed) but keep showing up in the blocklet.

i3blocks config relevant to blocklet(s)

[taskw] interval=5 TASKW_TF=true TIMEW_TF=false TIMEW_DESC_OVERRIDE=false TASKW_MAX_LENGTH = 35 TASKW_NOTASK_MSG=--No Task-- TASKW_SORT_URGENCY=false TASKW_PENDING_TF=false TASKW_MAIN_FILTER="+ACTIVE"

Output of blocklet(s) when run from command line

test 2

Output of any relevant other commands that might help diagnostics

task 'test 2' return no task

task +ACTIVE export [ {"id":0,"description":"test 2","end":"20210823T001251Z","entry":"20210823T001050Z","modified":"20210823T001253Z","start":"20210823T001058Z","status":"deleted","uuid":"5f2710d7-1500-45f2-9781-b01cc6ac390a","urgency":4} ]

mhalano avatar Aug 23 '21 12:08 mhalano

I think the solution would be to add a new -DELETED default filter together with +ACTIVE. It would fix that. I will add manually for now, but I'm afraid other people find this edge corner.

mhalano avatar Aug 23 '21 12:08 mhalano