TodoTxtJs icon indicating copy to clipboard operation
TodoTxtJs copied to clipboard

due: is changing to Due:

Open grrlguide opened this issue 10 years ago • 1 comments

Tested twice now: found that several entries in todo.txt automatically, without human intervention, changed due: to Due: in todo.txt file, rendering file out of line with official apps, which require lower case "due:" Does not seem to happen except overnight, when file not in use. I also open the file with Simpletext (Android) but that does not seem to be the culprit.

grrlguide avatar Jan 26 '15 19:01 grrlguide

Unfortunately the standard isn't clear: https://github.com/ginatrapani/todo.txt-cli/wiki/The-Todo.txt-Format

If you look in the bottom two sections due dates are written in two different formats:

due:2010-01-02 DUE:2006-08-01

This is why TodoTxtJs does only lower-case comparisons, but always re-uses the actual value it received.

You can try it. due:2015-05-05, Due:2015-05-05, DUE:2015-05-05 are all detected as due and all retain their original casing when you export or view the actual text.

I don't believe TodoTxtJs is your culprit. If you still believe it to be TodoTxtJs could you try to narrow down a scenario I can reproduce please, as I've been unable to find one myself.

MartinSGill avatar Jan 31 '15 09:01 MartinSGill