QTodoTxt2 icon indicating copy to clipboard operation
QTodoTxt2 copied to clipboard

Recurring Tasks

Open sttrebo opened this issue 7 years ago • 20 comments

Recurring tasks not working for me right now. Is this a bug or is this not implemented (yet)?

sttrebo avatar May 31 '17 15:05 sttrebo

I never tok the time to understand recurring tasks. but it should not be hard to make it work. PR welcome

oroulet avatar May 31 '17 15:05 oroulet

works perfectly for me in V1.x. kinda depend on it right now.

sttrebo avatar May 31 '17 15:05 sttrebo

How is supposed to work? Make a new task when marking it as done? Or every week/dsy? (But​ this should not work since there is no timer...)

oroulet avatar May 31 '17 15:05 oroulet

v1.x makes a new task when marking it as done. this is perfect for my workflow. the timer idea is interesting, but i can't see any workflow (for me) that would need this.

sttrebo avatar May 31 '17 16:05 sttrebo

After completing a recurring task, a new task witha new due date is created. The next due date can be configured in the task by defining a statement. rec:4d means the next due date is 4 days in the future from completion date. rec:+4d means the next due date is 4 days in the future from the original due date. When you're lazy then this might be in the past. ;-)

topas-rec avatar May 31 '17 16:05 topas-rec

Thanks, now I understand. All your code is still there in qtodotxt2 so we probably just need small changes to make it work

oroulet avatar May 31 '17 19:05 oroulet

I use these tasks for things not related to programming. I use it to remind myself for pc backup, car maintenance and taking out my garbage. It's a real help here.

topas-rec avatar May 31 '17 19:05 topas-rec

In fact some code was in a deleted file. so I moved it back refactored a bit and it seems to work now. Let me know https://github.com/QTodoTxt/QTodoTxt2/commit/8e2761ad7abe632257414ae34bff8165b35db2d1

oroulet avatar Jun 01 '17 08:06 oroulet

seems to be working so far, i'll keep testing.

sttrebo avatar Jun 01 '17 23:06 sttrebo

found not a bug, but would be a great tweak. due dates get updated just fine. is it possible to update the threshold date also? as an example: (B) Chevron +Personal @Bills due:2017-06-30 t:2017-06-25 rec:+1m

when i mark this complete i get: (B) Chevron +Personal @Bills due:2017-07-30 t:2017-06-25 rec:+1m

not sure how the programming logic would work since you can have the due date update based on original date or the date when it is actually marked as done ( + )

sttrebo avatar Jun 02 '17 18:06 sttrebo

Oh I missed this while implementing recurrent tasks in Qtodotxt 1. Qtodotxt 1 could also benefit from this add-on.

topas-rec avatar Jun 02 '17 19:06 topas-rec

The code is exactly the same in both. Just a bit cleaned up in 2

On Fri, Jun 2, 2017, 21:01 Topas [email protected] wrote:

Oh I missed this whole implementing recurrent tasks in Qtodotxt 1. Qtodotxt 1 could also benefit from this add-on.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/QTodoTxt/QTodoTxt2/issues/25#issuecomment-305881922, or mute the thread https://github.com/notifications/unsubscribe-auth/ACcfzukJAZAGX8EhEisdiICyC83MDvDXks5sAFvxgaJpZM4Nr0nY .

oroulet avatar Jun 02 '17 19:06 oroulet

seems to work for me, thanks

sttrebo avatar Jun 05 '17 15:06 sttrebo

I just wanted to start making recurring tasks respond to threshold date.

@oroulet: The code is exactly the same in both. Just a bit cleaned up in 2

I understand: I can just do the changes in QTodoTxt and the code will be available in QTodoTxt2. (That would be ideal!) Is that correct?

topas-rec avatar Oct 06 '17 19:10 topas-rec

@sttrebo: as an example: (B) Chevron +Personal @bills due:2017-06-30 t:2017-06-25 rec:+1m when i mark this complete i get: (B) Chevron +Personal @bills due:2017-07-30 t:2017-06-25 rec:+1m

Should it look like this @sttrebo :? (B) Chevron +Personal @bills due:2017-07-30 t:2017-07-25 rec:+1m

topas-rec avatar Oct 06 '17 20:10 topas-rec

yes, that looks about right.

sttrebo avatar Oct 06 '17 21:10 sttrebo

@topas-rec i haven't looked at that code for a while, but if I wrote that code is similar, then it probably is ;-) probably better code in qtodotxt2 too

oroulet avatar Oct 07 '17 19:10 oroulet

QTodoTxt2 seems to have threshold date handling. @sttrebo have you tested QTodoTxt2? I am nearly done with the fix in QTodoTxt.

topas-rec avatar Oct 08 '17 11:10 topas-rec

yes, been using that feature in QTodoTxt2 for a while and works exactly as it should. FYI, I use it to track my credit card bills. Due date when it's due and Threshold 1 week prior to make sure I pay it on time.

Curiosity: Is there a reason to keep updating QTodoTxt? I thought QTodoTxt2 was a newer/better version?

sttrebo avatar Oct 08 '17 15:10 sttrebo

If you use qtodotxt2 for accounting then we can say it is stable ;-) there are still some usability issues with qtodotxt2 which I would like to solve before releasing it. Then it is missing packaging code for osx,windowd, etc... I hope somr people will step in and help with that..

oroulet avatar Oct 08 '17 16:10 oroulet