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

Support for "soon" config option in --due=soon #37

Merged

Conversation

thomasjfox
Copy link
Contributor

Support for "soon" config option in --due=soon

From the documentation:
"ttdl l --due=soon" show todos which are due in less than a few days,
including overdue ones (the range is configurable and default value is 7 days).

-> actually use the config value instead of hardcoding to seven days.

I'm not 100% sure about moving parse_filter(), ideally the config file is parsed first and then all the cmdline options are applied. Let me know what you think or feel free to directly tweak the code to make things easier.

From the documentation:
"ttdl l --due=soon" show todos which are due in less than a few days,
including overdue ones (the range is configurable and default value is 7 days).

-> actually use the config value instead of hardcoding to seven days.
@VladimirMarkelov
Copy link
Owner

Thank you! It seems I missed this one.

I'm not 100% sure about moving parse_filter()

If it works it is fine to move it. Anyway, by the end we get correctly parsed config.

@VladimirMarkelov VladimirMarkelov merged commit 44ec013 into VladimirMarkelov:master Jul 25, 2020
@thomasjfox thomasjfox deleted the soon-due-filter-days branch July 28, 2020 08:12
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.

2 participants