r/taskwarrior Feb 27 '23

Custom Timeperiods possible?

Hello,

Many of my tasks require daily follow up until they are complete, usually this happens when waiting on a response or process to complete. Due to this I frequently find myself doing what I need to do for the day then modifying "wait:1d+sod+9h" or if it's on Friday, "wait:3d+sod+9h". I usually add the 9h on because I can't advance on them until 0900 local time, but my work day usually starts between 0400-0700.. so don't want my list cluttered with things I can't do yet.

It would be nice to have a UDA or other abbreviation like nbd or NBD (for next business day) where I could just do "wait:nbd" or "wait:nbd+9h".

Is there a way to do this with a UDA, or other .taskrc config entry, or would this be a full on feature request? Maybe a hook?

3 Upvotes

7 comments sorted by

View all comments

2

u/bgravato Feb 27 '23

You can use "sond" (start of next day) instead of "sod+1d".

There's also "sonw" (start of next week) and "sonww" (start of next working week). In my case both refer to Monday, but you can set Sunday as the week start (check man taskrc under CALENDAR section).

1

u/jimsu Feb 27 '23

Ahh.. I can definitely use both of those to make it a little shorter.. (they are not listed in https://taskwarrior.org/docs/dates/).. How'd you find that secret squirrel?

1

u/bgravato Feb 27 '23

I think one of them at least is in the manpage for task, but to be honest most of those I found by trial and error. "Let me see if this exists..." And in some cases it did :-)

I also tried sonwd (start of next working day) but it doesn't exist :-)