VladimirMarkelov / ttdl

TTDL - Terminal Todo List Manager
MIT License
209 stars 17 forks source link

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

Closed thomasjfox closed 4 years ago

thomasjfox commented 4 years ago

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.

VladimirMarkelov commented 4 years ago

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.