pimutils / khal

:calendar: CLI calendar application
https://lostpackets.de/khal/
MIT License
2.6k stars 199 forks source link

Permissive parsing of DELTA #1285

Closed madduck closed 11 months ago

madduck commented 1 year ago

I often enter the DELTA using khal add with a leading plus, e.g. because it's how stuff works in TaskWarrior, among others. So: khal add tomorrow 10:00 +90m Test, but this generates an event with title "+90m Test".

My suggestion would be to swallow a leading + in what might be a DELTA value, and try both.

Happy to try to submit a patch.

WhyNotHugo commented 1 year ago

I think that this sounds pretty sensible.