taskbook
taskbook copied to clipboard
Allow for setting due dates on tasks
Implements #67
Description
Adds a new due:
tag to task creation allowing users to specify a due date for the task.
Other Features/Ideas
- [x]
$tb --due @1 6d
for updating the due date. - [ ]
$tb -f overdue|today|tomorrow
for finding tasks based on due date. - [x] Apply medium priority styling to tasks due this week and and high priority styling for tomorrow.
- [ ] Add special date/time definitions for "tomorrow" and "next-week"
Screenshots
Due Date Assignment
Colour-Coding
Cool! What happens when a task is overdue?
@ashinzekene Currently there's no logic to handle due dates in the past. However I would imagine the right option here is that we show something like (Due: 2 days ago)
or (Due: yesterday)
. I'll put a fix in the add "ago" for dates in the past :)
I feel like a due date has some idea of a priority, would it make sense to color things with a due date or to color things that are past due?
@colingm Totally! I mentioned this above in the PR body :)
Apply medium priority styling to tasks due this week and and high priority styling for tomorrow.
The high priority styling should probably extend to overdue tasks too 👍
@JordanAdams haha whoops awesome. Yeah overdue would be good. Nice work!
Nice work :+1:
May need integrating with #52, which adds an --after flag based on issue creation time. Would be nice to have similar filters based on due date also?
@kalexmills The discussion around moment vs date-fns in there is interesting. I'll migrate this PR to date-fns off the back of that. The only thing we lose in doing so is .fromNow
which provides the nice "in 3 days" formatting. However I've been looking at format.js as a possible alternative :)
I'll also add having a --due
to the list :)
@JordanAdams Are you talking about https://github.com/yahoo/intl-relativeformat
@rjoydip That's the one :)
great addition
is it possible to make a task recurring?