Open dubbitywap opened 9 years ago
I had no look at the code, but :+1: for support of recurring tasks in todo.txt-vim !
@dubbitywap this sounds like a nice feature! Pull requests are welcome. :)
I like this. I have personally been using "recur:", and have been working on a pull request for this (I didn't see this until just now), but if "rec:" is being used elsewhere then I'll update to use this syntax. Is there any documentation on the specifics of this syntax anywhere?
It also looks to me like you are basing the new due date off the current time, rather than the due date in the task. I personally would prefer the recurring date to be consistent, i.e. I regularly complete tasks before/after the due date, but I still like the date of the recurring task to stay on track, i.e. 7 days from when it was due, not when I completed it. Is that reasonable behavior, or would people prefer it to be based on the actual completion date?
It's way more predicable to have a recurring task based on due times. I vote that method.
I have implemented recurring tasks with the rec:
keyword syntax in my fork. If anyone wanted to have a play with my fork and give me some feedback, that would be awesome. It might take me a few weeks to get a pull request ready for this fork as I think it is quite diverged from the fork I work on and I don't have a lot of time at the moment.
I've been using it for about a week or so now, and I have to say I'm loving it. I was manually handling recurrence previously, and had never seen another implementation handle recurring tasks.
In an effort to ensure compatibility with other implementations, I have used the same syntax as described here and here, with the exception of business/working days.
I made <LocalLeader>x
aware of recurring tasks and added a new mapping [count]<LocalLeader>p
to postpone tasks by [count]
days, which is also recurrence aware.
I discovered the other implementations have a "strict" and "non-strict" mode, which addresses my previous question, and both recurring from the due date (strict mode) and recurring from the completion date (non-strict) modes are implemented.
Hello,
I have been using the great simpletask android app. The app has a nice feature that allows for recurring tasks by adding to the task line the following:
"rec:7d" will automatically create the same task due 7 days after the completion date, "rec:2w" will create the same task due 2 weeks from the completion date, etc...
I was playing around with the txt.vim file and added an if statement to the todo#txt#mark_as_done() function which mimics this behavior:
Right now, it only works for days and weeks. Let me know if this works for you and if you have any ideas on how to add month/year recurrence.