-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
Recurrence with threshold date and priority adds unwanted artefacts #565
Comments
@stephprobst there might be a misconception on what the recurrence feature does. It is not connected to the threshold dates in any way. It really is about the due date. The behaviour you're describing sounds pretty much like it has been developed: https://github.com/ransome1/sleek/wiki/Recurring-todos-(rec:) And about the priority; When marking a todo with priority as complete, the priority is being preserved as an extension (pri:). This has been implemented after a user pointed out that sleek would break the todo.txt format otherwise: #271 |
@ransome1 the documentation states, that recurrence should also work with threshold dates. And it did work in version 1. Link to documentation: https://github.com/ransome1/sleek/wiki/Deferred-todos-(t:)#recurrence . I'm a big fan of this feature and it was one of the things that made me fall in love with sleek. :-) On the priority: The linked issue #271 discusses the added FYI - If you are happy with the proposed changes I can also try to send a PR myself in the next days. But I would wait for your confirmation of the concept. |
I just double checked this and confirm it is a bug. There is not suppose to be the pri: extension on a newly created task. It might be due to this issue in jstodotxt, where I couldn't find a feasible way yet, to fully remove extensions.
I checked the implementation and it is actually there. Must have been late yesterday ;) But for some reason it doesn't work as expected. I'm afk now for the next two weeks. A PR would be highly appreciated. It would be good if you could also create the respective test cases, so that we have this feature a bit more under control. There are quite a couple of scenarios, that need to be tested and my tests obviously did not cover this :/ |
I sent two PRs:
Besides the two already mentioned bugs there was a third one, which goes hand in hand with the others: When a user completes a task with
Would you agree? I hope the reason for afk is a relaxing vacation! :-) If so, enjoy! |
@stephprobst I assume we can close here, right? |
Yes. All good from my side. |
Bug Report
App Version: 2.0.1
Platform: Windows 10
Installation Method: App Store
Bug Description:
When completing a task with
rec:d
andt:2023-11-02
(the current date) the newly created task suddenly has a threshold datet:2023-11-03
and a due datedue:2023-11-03
. The newly added due date is incorrect and shouldn't be there. There is also a new text elementpri:A
in the task, which shouldn't be there.Steps to Reproduce:
(A) Do something rec:d t:2023-11-03 @SomeContext
, but replace2023-11-03
with the current date.Expected Behavior:
The new task should look like this:
(A) Do something rec:d t:2023-11-04 @SomeContext
Actual Behavior:
The new task looks like this:
(A) Do something rec:d t:2023-11-04 @SomeContext pri:A due:2023-11-04
Additional Information:
The bug was introduced with the release of version 2.0.0, it worked fine in 1.*
Screenshots:
Not applicable...
The text was updated successfully, but these errors were encountered: