Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable thisweek option, add month options for due dates #259

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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