sebastianbenz / eclipse-task-editor

A simple textual todo manager for Eclipse.
44 stars 11 forks source link

Enable export to confluence, html, markdown #6

Open sebastianbenz opened 13 years ago

trenchcode commented 13 years ago

I would like to add a feature request to export to Org-Mode (http://orgmode.org/) format.

Take this todo-editor text as an example:

root notes
- task one @todo @tag
- task two @todo:
  task two notes
  - subtask one @tag
  - subtask two

In org format, this would become:

root notes
* TODO task one  :tag:
* TODO task two
  task two notes
** subtask one  :tag:
** subtask two

It should be fairly easy and would be very useful for people working with Eclipse and Emacs.

sebastianbenz commented 13 years ago

I just had a look at org-mode. Looks really interesting. A generator shouldn't be too hard to implement. What I don't understand is, why do you mark todos explicitly via tags? In the eclipse editor everything that starts with a hyphen is considered a todo/task. Wouldn't it be more intuitive to map these to org-mode todos by default?

The only problem I see with supporting org-mode is that you need a bidirectional mapping between eclipse-todo and org-mode for it to be really useful. You can have a look at the confluence generator:

https://github.com/sebastianbenz/eclipse-task-editor/blob/master/de.sebastianbenz.task/src/de/sebastianbenz/task/generator/ConfluenceGenerator.xtend

to see how to implement a code generator for the todo editor (it uses Xtext's Xtend2).

trenchcode commented 13 years ago

My above example mapped eclipse editor todo/tasks to the simplest org-mode todo item. Org-mode is not just a todo application, it can be used for general task-management, note-taking and much more. Headlines start with "*" and can work as todo items when preceded by "TODO" (thought that's customizable). There are also simple list objects (starting with "-") and many other functions.

As for the generator, I can't code in Java, but it would be great to have bidirectional mapping. Org-mode is the most powerful organizing mode in Emacs and being able to work with those files in Eclipse would be extremely useful for people using both. I'm sure you can get a lot of support on the mailing list (http://news.gmane.org/gmane.emacs.orgmode).