-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add dates to the written files #56
Conversation
The completion date is mandatory as per the format and the creation date is also useful. These are not shown to the user yet in this todo.txt client, but are used in many others, so it's useful to include them already in the file even though we don't yet have an implementation for showing them in the UI.
According to https://github.com/todotxt/todo.txt neither completion date nor creation date is mandatory. However, if a completion date is present a creation date must also be present. This means that with the changes from 9c877b0 Go For It! will generate invalid todo.txt lines for tasks which did not contain a creation date. |
This is the section I'm reading to get my conclusions:
|
Allright, that means that a completion date is mandatory if and only if a creation date is present in a completed task. |
What, no it doesn't. Without the comma it might, but as it stands no way. The
|
That last sentence is a bit weird, but from (a):
and (b):
and, finally (c): https://github.com/todotxt/todo.txt/blob/master/description.png we get the following rules:
|
I was waiting on an official response on todotxt/todo.txt#21, but that doesn't seem to be happening any time soon. |
Sounds good, thanks! |
The completion date is mandatory as per the format and the creation date is also
useful. These are not shown to the user yet in this todo.txt client, but are
used in many others, so it's useful to include them already in the file even
though we don't yet have an implementation for showing them in the UI.
Your implementation of the parsing is much cleaner. Showing the dates (and sorting by them) would be good, but for the time being I'd be somewhat happy even with just saving them as I also use the todo file on my phone and there I already sort by creation date. I can't really use Go-For-It at all if it doesn't include creation dates in the file as then it messes up the file for the other client.