Enable thisweek
option, add month options for due dates
#259
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Addresses the bug described in #258
Enables filtering tasks due the current week, treating Monday as each week's start. This brings the functionality in line with what's described by the help pages, producing valid results instead of errors when running a command such as
ultralist list due:thisweek
.In addition, passing in
due:nextweek
anddue:lastweek
filters will get the tasks for the entire week, rather than just the corresponding Monday as it is currently.When adding tasks, the
due:nextweek
anddue:lastweek
will set the due date to the Monday of the appropriate week (preserving the current functionality), as willdue:thisweek
(instead of an error as it is currently).Finally,
lastmonth
,thismonth
, andnextmonth
date options are added, with the same functionality as the week flags. When setting a task's due date, it will be set to the first day of the corresponding calendar month, and when used in filtering, will filter out all tasks with due dates in that calendar month.