simpletask-android icon indicating copy to clipboard operation
simpletask-android copied to clipboard

Reccurance not working — dates do not update

Open LegendoftheBowlcut opened this issue 4 years ago • 4 comments

Device: Xiaomi Poco x3 nfc App version: The one in f-droid

Steps to reproduce:

  1. Create task with string: tasktext [at]taskgroup rec:2d
  2. Check off task
  3. Task is immediatly created again
  4. done.txt has checked task added

So what i expected was that it will disappear until the next time it is due. It does basically nothing but recreating the task. Not even with an added due:whatever so im not sure if this is really intended? I checked the regex in task.kt on line 334 and in the sandboxes i tried that regex in i couldnt match rec:2d im no expert in java or regex and how this app works but i assume that expression is supposed to match the whole string or not?

So what im getting at is that either the documentation is not correct(it even features a different regex that seems correct) and rec:2d is not the way to go or the regex might be wrong

LegendoftheBowlcut avatar Apr 08 '21 09:04 LegendoftheBowlcut

rec: always creates the task again immediately. You can then hide it with a filter. For example, you could make a filter that only shows tasks due today. That would require a lua script; the easier way is to use a threshold date, and un-check "show tasks with threshold date in the future" in the filter.

smichel17 avatar Apr 08 '21 13:04 smichel17

Sure thats how i assumed to happen next that it creates the task immediatly but with a due date depending on the timeframe in the rec string. But for me it just creates exactly the same task without any due date added etc so for me i can write 2w, 2m or 2d they all basically change nothing for me

Ill do a screen recording later and post it here

LegendoftheBowlcut avatar Apr 09 '21 12:04 LegendoftheBowlcut

If a recurring task doesn't have a due date or a threshold date, no date will be added. This works as designed. What would you expect to happen if you recur a task without due date or threshold date?

mpcjanssen avatar Apr 09 '21 17:04 mpcjanssen

@LegendoftheBowlcut can you look at my previous question?

mpcjanssen avatar Aug 30 '21 07:08 mpcjanssen