-
Notifications
You must be signed in to change notification settings - Fork 80
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
CLI: undo argument #505
Comments
Yeah, apparently it was removed in 2015. I've no idea why it was deprecated, but that happened in 9b863d5. I honestly haven't needed to use it since then, but I don't think we deliberately planned to drop this command. |
You can |
Okay, It would have been great to have this feature, as I use todoman with a dmenu script. :)
Yes I'll use this feature for now. If the undo feature isn't coming back, maybe remove the corresponding paragraph from the documentation. |
I'll take a PR that implements this. I think we need to update both |
Is there any progress on this issue? I have stumbled with the paragraph and undo seems to keep being deprecated. If there is still interest in implement it, i think i can try it. Seems as an easy task to learn a bit about the project code and the to-do standard. Is there any dev oriented documentation? It could be handy as I have only found the lifecycle and some tips. |
Sure, contributions for this are welcome.
I think that instead of
|
I think undo should restore the status to My initial approach was to undo everything Can the user add new related task to an already completed todo? |
Yup, We should be able to determine if another todo is the next in the series when all of the following are true:
In this case, it should be safe to delete the related todo (and the relationship to it), since it's clearly the next in the series and has not been touched and we know it will be re-created when completing the current one. Leaving it untouched should not be terrible though; it's just that both instances will show up now, which will likely be reported as a bug. Dealing with the recurrence situation can be dealt in a follow-up.
Not via todoman, but yes via other tools (or manually editing one). |
I have made an implementation but trying to make tests for it I stumbled upon a problem with how todo_factory works. After debugging with pdb and pytest seems like todo_factory doesn't create the related list inside my todo and that mess up all asserts afterward. I have tried to update the cache but seems like is not an issue on that side. |
It has taken a while but solving some problems with my editor, I have found the issue. We were not saving related Todos in our sqlite cache. (So when I try to retrieve information about the related Todo, I can't because all I have is an empty array) Edit: I think modifying just the cache could not be enough as related Todos will be wiped out when cache refreshes. I'm checking other issues because it could be solved with #288 but i have to check how Akonadi saves recurring todos first. Moved by curiosity I have checked if any other attribute is missing but seems like it's not the case 🎉. I have thought about a table (relations) similar to categories to track related Todos. It could be useful in the future if there are more features that depend on how a Todo relates to others. Having to create a new table, tests and modifications on how we create, modify and retrieve Todos; should I create another issue for it and a separate PR ❓? I'm pretty bad estimating the scope of it so I would appreciate any thoughts about this. |
I'm no longer interested in contributing to this project. If anyone want to continue this issue, feel free to do so. |
Sorry to hear that. My sincerest apologies for the frequent delays in reviews/feedback. I'm well aware of how discouraging that can be. Thank you for your contributions thus far, and best of luck in future. |
1 similar comment
Sorry to hear that. My sincerest apologies for the frequent delays in reviews/feedback. I'm well aware of how discouraging that can be. Thank you for your contributions thus far, and best of luck in future. |
The Documentation sais something about a undo argument for todo:
but there seems to be no such options in V4.1.0, and I did not find any in the source code either.
Was this option removed, or is it planned to be implemented?
I would love to have the option to un-mark done tasks (but I do not know any python to do a pull request).
The text was updated successfully, but these errors were encountered: