Closed manfredlotz closed 3 years ago
It took some time to understand what was the trouble. In this particular case, the fix may be inconvenient, but you can replace :
inside time with h
(internally 14:30
becomes a tag 14
with value 30
):
ttdl add "Call my grandma at 14h30 @phone due:1d"
As I debugged, the cause of the trouble is that the used library, when parsing, extracts all the tags without preserving the original string. When it generates a line for an item, it adds all tags at the end. I think, I understand why it was done this way. Usually it does not make much difference where a tag is. But, in some cases, like yours, that behavior may distort the original todo item meaning. A todo item that contains more than one tag can turn into incomprehensible sentence. E.g, ttdl add "call person:john at 14:30 to ask about agreement with customer:initech"
becomes call at to ask about agreement with person:john 14:30 customer:initech
.
I'll look into the issue. I think it must be fixed.
Excuse me for not better explaining the issue.
For the time being I avoid the :
(colon). I agree this should be fixed.
Replaced the "todotxt" library with another one that preserves tags in todo's subject. There are a few incompatibilities(and may be new bugs), so I bumped version to 2.0.
Did some tests. All looks good. Thanks a lot
If I do this
I get
Of course I like to see
Is this a bug on ttdl's side or am I the problem?