-
Notifications
You must be signed in to change notification settings - Fork 37
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
[Bug]: Three fatal interactions with date popup and tasks plugin #100
Comments
Can you say what the basis of this is please? It was theorised originally that the the problem was an interaction between Tasks and Reminders. But everything that was described in that original issue was observable with only Reminders installed. See this comment: obsidian-tasks-group/obsidian-tasks#910 (comment) |
Yes that bit is correct. The described behaviour in reminders is forced by the fact that tasks does not want anything at the line end. So that part is not a coding interaction, but it is a major incompatibility of two key plugins. The bad interaction (at least at the task end) is that tasks does not like stuff at the end of the line (which reminder wants to do), and also has a due date without a time (necessitating workarounds such as the (@ and the use of yet more icons at the reminder end. |
One idea that might help: it would think it would be doable to make Tasks recognise and not damage this:
My only hesitation is I’m nervous about pointing Tasks users towards Reminders whilst #93 is still a problem, that is completing a recurring task via Reminders breaks the recurrence pattern. However, there was a suggestion earlier today about Tasks maybe providing a TypeScriot API for use in other plugins, so maybe Tasks could expose a function that Reminders could use to do the recurrence calculation, and avoid duplicated code. I know I’ve said this elsewhere, but I would still love to give those who use both Tasks and Reminders together to have a better experience, but I’m depending on someone who knows the Reminders code being able to work together with me on that, to make it happen. |
Here is the way that the Tasks says to use Reminders that are compatible with Tasks: https://obsidian-tasks-group.github.io/obsidian-tasks/advanced/notifications/
|
As an aside, the reminder plugin does all sorts of other horrible things to tasks So if you have it set to use the tasks due date as the reminder date, and switch off its own mechanism
The popup will give you the option to defer the task by some time. If you do defer it (in this instance by a week) then unless the due date was at end the, it does change the due date by a week but it wipes absolutely everything else out!!
|
The reminder plugin is wonderful, but until these problems are sorted out I am going to have to be switching it off So in summary the problems are: |
As mentioned earlier, Tasks documents that if you want to use it with reminders, you should use the clock emoji, not |
Unfortunately the advice in the Tasks documentation doesn't work for exactly the same reason. If you set the clock emoji to be the relevant thing in the reminder settings, and then have a task like so:
When the reminder pops up, if you reschedule the reminder it wipes the rest of the line (the priority, start date, etc). Reminder does not permit any characters other than date/time between ⏰ and 📅 It sometimes only wipes some things, so for the exact example in the tasks documentation, the first time the task reminder is deferred the priority is wiped
becomes
|
@aubreyz @claremacrae Sorry for late reply. I've tried to improve the behavior. Can you check? Wherever we insert the reminder date, the date will be inserted before the Tasks plugin tokens when we enabled fixed.mov |
@uphy I hope to have some time to fix it later today. |
Oh, I'm sorry for confusing you. I haven't release the feature yet. |
Ah right, brilliant. Yes, your understanding is correct and this should really help. Related: would you be interested in working together to see how I can share the Tasks plugin code for handling recurrence, for re-use in Reminders? If we can enable Reminders to handle recurring tasks too, then there are smoke changes I would make in Tasks to play nicely with Reminders (like updating the Reminder date when completing a recurring task) and I think we could declare to our users that the two plugins are then fully compatible... If you are interested in working together, my email address is in my GitHub profile... |
@claremacrae Thank you for checking! I release it today.
I fixed recurrence handling issue today. (ref. #122) But if you want to work together strongly for future changes, I will do my best. |
Hi @uphy Many thanks for working on this.
Here are the current tests for recurrence within the Tasks plugin. (And the documentation is at https://obsidian-tasks-group.github.io/obsidian-tasks/getting-started/recurring-tasks/ ) It would be interesting to convert those tests to run in the Reminders code, and see what proportion of them pass. That would inform whether there is any value in making the Tasks code re-usable by Reminders. Some examples that I cannot see implementations of in Reminders (apologies if I have missed them)
I'm sure it could be implemented in a way that you didn't have to worry about those things.
That's interesting. I didn't look too closely, but I did notice quite a lot of repetition in the changes in this PR: Helping people improve the design of existing code is one my specialities. I would be happy to help on that.
At the moment, I think that there are several aspects of recurring tasks that may not be supported correctly by Reminders, and I would love to be able to point users of Tasks to Reminders, if the recurrence behaviour of the two plugins matched. I recommend you don't replicate all the behaviour yourself, it's far too complicated. It's totally up to you. I'm happy to offer help to Reminders, if you would like to improve that area... |
Describe the bug
Since the problem and various test of it are described in great detail on the issues page of the tasks plugin there is no merit summarising them further here - see obsidian-tasks-group/obsidian-tasks#910
These are two great plugins and it would seem worthwhile trying to get them to cooperate, but at least in terms of the above most of the problem seems to be in the reminder court - with possible simple solution to make sure users avoid using the (@ popup if using tasks, and also warning them not to leave the (@ at the end of the tasks line but rather after the description only.
Expected Behavior
see obsidian-tasks-group/obsidian-tasks#910
Steps to reproduce
see obsidian-tasks-group/obsidian-tasks#910
Operating system
Windows
The text was updated successfully, but these errors were encountered: