Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editing relative recur due and wait values #11

Open
eshapard opened this issue Mar 13, 2020 · 1 comment
Open

Editing relative recur due and wait values #11

eshapard opened this issue Mar 13, 2020 · 1 comment

Comments

@eshapard
Copy link

eshapard commented Mar 13, 2020

Hey, not really a bug in your hook script (THANK YOU FOR THIS, BTW!), but I noticed some unexpected behavior when editing a task.

If you do task 3 edit and change the relativeRecurDue or Wait values (Say, from P30D to P45D), taskwarrior doesn't seem to handle this as expected (I'm using version 2.5.1). Upon completing the task, the next recurrence will be due immediately instead of after a delay period.

Instead of using the edit function, you have to modify these values from the command line:
task 3 modify relativeRecurDue:45day etc.

(I actually renamed them to the shorter rrdue and rrwait... which I think is how they were in an older version of the script; not sure, but it's faster to type ;-) )

If anyone is googling this issue, here's how to edit the recur periods without breaking it.

@JensErat
Copy link
Owner

I'll have a try at reproducing this as soon as I got some spare time. Not sure yet if this feels more like an upstream issue to me.

Indeed -- I rarely use edit and modify all the time. I'll check whether edit has a different hook workflow that needs some adjustments. Glad you found a workaround anyway.

Regarding rrdue -- I'm not sure the code was ever like this, at least git history shows the initial release here was the long version already. But well possible I distributed a first copy on the mailing list or somewhere else. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants