emacs-todoist icon indicating copy to clipboard operation
emacs-todoist copied to clipboard

Feature request: Add support for saving all changes at once

Open hakanserce opened this issue 5 years ago • 5 comments

Support for editing all tasks directly and then finally pressing C-x C-s , for instance, to save all the changes, or more like synchronizing with todoist.com.

hakanserce avatar Jun 11 '19 00:06 hakanserce

That would be super cool but also pretty hard...

abrochard avatar Jun 11 '19 02:06 abrochard

It would give freedom to edit the org buffer like usual and then sync everything. Something like in dired edit mode?

  • From the todoist-mode switch to "todoist-edit-mode" with C-c C-e
  • The main commands will add an action property instead of executing f.ex todoist-close-task would only add a property :ACTION: close
  • New sections without PROPERTIES will be create like todoist-new
  • Done editing with C-c C-c and perform a "todoist-sync" executing the action :ACTION: or creating new tasks.

ghost avatar Mar 06 '21 08:03 ghost

Could the todoist buffer be treated as a regular org buffer including bidirectional sync?

dmitrym0 avatar Aug 03 '21 17:08 dmitrym0

It could and that would be a great feature, but it is pretty hard to implement. Two big issues I see already is

  1. what happens if a change happens to the tasks outside of org-mode? like you check a task off on your phone but then edit it in org-mode. We would need frequent polling or some kind of conflict resolution strategy.
  2. what if the user takes an action in org-mode that isn't supported by todoist? like messing up the formatting or erasing the task id tag? we can't sync that task anymore so what should we do with it? erase it? erase the change? leave it and potentially show a duplicate?

abrochard avatar Aug 04 '21 02:08 abrochard

You're right; this is not a trivial task. I'm just dreaming of a first class task tracking solution for mobile. Todoist, Omnifocus, RTM, etc they all have desktop-web-mobile sync so it's technically possible just not easy.

dmitrym0 avatar Aug 05 '21 19:08 dmitrym0