-
-
Notifications
You must be signed in to change notification settings - Fork 314
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
2.6.X: 'eocw' and 'socw' are invalid #3628
Comments
Afaik, there is no "calendar week" shortcut available; The one that exists is There is a change being discussed in #3623 to allow (except as an example in |
and they were handled in the now missing src/Date.cpp file whose code also took into consideration I hope these functionalities (both the shortcuts and considering config's weekstart) could be reworked into the code perhaps using this reference? #3623 |
I think regarding this issue it makes more sense to remove the aliases, as the other abbreviations (which are at least now working or the latest) refer to the next Regarding the I think we should definetely update the completion scripts to be up to date with the current implementation. |
I guess if weekstart influenced it, eow and eocw would be different, but there's no need for another week-relative distinction. Even if weekstart is implemented let it have global effect anyways so eow and sow would change along with it. |
@felixschurk I'm curious where you saw My reading of the original code is that I don't know when this changed or the history behind it, but I do note there was some kind of discussion and there exists
which seems puzzling to me, as I can definitely see the usefulness of such concepts. It would be great to see the rationale for this statement and the surrounding discussion somewhere. It makes me reconsider the wisdom of fixing up the week-relative shortcuts to consider weekstart, as I had planned ala #3629/#3623. If the concept of weekstart was discarded after long discussion, and it was decided that Monday should always be the weekstart (this is my preference anyways), maybe the week-relative shortcuts are already correct, and really we should have just fixed week parsing to always use ISO8601 weeks (like they will now if rc.weekstart = monday after #3654) and eliminated Sunday weeks altogether. But I know that some people wouldn't like that, and there have been several posts -- both here and in the timewarrior project -- asking for weekstart to be honored broadly, so Sunday weeks are clearly still used by some folks, and it's probably not reasonable to remove them. I still think it doesn't make sense to add the socw/eocw though (unless they are just aliases for sow/eow), because that appears to be what sow/eow are these days (ie, differing from soww/eoww). There were only two different week-concepts before too, but we've [somewhere along the way] shifted around the meaning so that a "week" is now synonymous with a "calendar week" rather than a "work week" as before. |
I took it from the previous documentation, before I updated it to reflect the current behavior. To be honest I did not further investigate the code. I mainly updated the documentation to reflect the current behaviour of taskwarrior. I personally think also that it would not harm to have a working "weekstart" setting. |
eocw
is showing up when ZSH command-completing timed-attributes for example eitherdue:
orscheduled:
...Apply the timed modification
I have checked the
v2.6.1
andv2.6.0
refspecs for the stringeocw
(andsocw
as well):And they don't show up in
.cpp
or.h
files likeeoww
does (src/libshared/src/Datetime.cpp and bool Datetime::initialize... functions).But they still appear as valid completions for fish & zsh shells !
The text was updated successfully, but these errors were encountered: