Due in n days should [have option to] omit weekends #1169
Replies: 2 comments 2 replies
-
It would be certainly nice to have such a feature. Instead of changing the meaning of "due in 2 days", I would make the parser understand "due in 2 weekdays" (which would exclude Saturdays and Sundays) or "due in 2 workdays" (which would also include holidays). The latter is probably too complicated, since it depends on knowing the holidays which can be different depending on the year and the country and even inside one country (like in Germany, where they depend on the Bundesland), so we should stick with "weekday" as the simpler concept. The problem here is that the parsing of dates is done by the chrono library which does not support the weekday concept other than in the phrase "every weekday". A phrase like "due in 2 weekdays" unfortunately cannot be parsed in chrono (please correct me if I'm wrong). Solving this issue would mean to either improve chrono to support that use case (maybe sending an issue or PR there) or to find another natural-language date parsing library that supports this use case. I don't think obsidian-tasks should do such language parsing on its own, it's good that this has been outsourced to chrono. |
Beta Was this translation helpful? Give feedback.
-
I've marked this as 'no action' in Tasks for now, as it would need a change in external code. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When I say
due in 2 days
on Friday, I do not meandue in Sunday
, butdue in Tuesday
. Could you please add an option for omitting weekends when calculating "dueness"?Beta Was this translation helpful? Give feedback.
All reactions