MartinSGill / TodoTxtJs

A Javascript web app implementation of TodoTxt
72 stars 29 forks source link

due: is changing to Due: #78

Open grrlguide opened 9 years ago

grrlguide commented 9 years ago

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.

MartinSGill commented 9 years ago

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.