Skip to content

Conversation

ltrubov
Copy link

@ltrubov ltrubov commented Oct 15, 2021

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 and due: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 and due:lastweek will set the due date to the Monday of the appropriate week (preserving the current functionality), as will due:thisweek (instead of an error as it is currently).

Finally, lastmonth, thismonth, and nextmonth 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant