Go-For-It icon indicating copy to clipboard operation
Go-For-It copied to clipboard

use org-mode format as an option

Open JMoerman opened this issue 6 years ago • 6 comments

Issue by trenkert Wednesday Oct 07, 2015 at 21:45 GMT Originally opened as https://github.com/mank319/Go-For-It/issues/68


I really like go-for-it, but I would love to have the option to use *.org-format instead of todo.txt. Would it be possible to implement this? Where should I start hacking?

JMoerman avatar Oct 25 '17 14:10 JMoerman

Comment by mank319 Wednesday Oct 07, 2015 at 23:15 GMT


You'd probably want to have a look at write_task_file and read_task_file in TaskManager.vala. However adding multiple backends would require to abstract the persistence and storage behaviour so that it is easily exchangeable.

JMoerman avatar Oct 25 '17 14:10 JMoerman

Comment by JMoerman Thursday Oct 08, 2015 at 13:37 GMT


This version of Go for it! is built around todo.txt, you cant just add another backend to the current code.

I am working on making Go for it! plugin based, but it may take some time for this to a) work at all, b) have a consistent UI. I hope to have something to test within two weeks. (depends on the amount of available time and how I feel.)

I think that the changes I have in mind will work well and will keep the application simple, but as of now it is just an experiment.

An indication of what has to be done:

  • Basic idea on how to change the UI to support plugins: done
  • remove todo.txt specific code: ~done
  • implement plugin loading: research is ~done, 30% done
  • Adapt the UI to switch between plugins: todo
  • Reimplement lost todo.txt functionality as a plugin: todo, needs a few small design changes
  • Redesign settings window: todo

JMoerman avatar Oct 25 '17 14:10 JMoerman

Comment by mank319 Thursday Oct 08, 2015 at 16:50 GMT


@JMoerman that sounds like what I've been hoping to do for ages but apparently never found the time to, so I'm very excited about your pull request :+1:

JMoerman avatar Oct 25 '17 14:10 JMoerman

Comment by JMoerman Thursday Oct 08, 2015 at 17:52 GMT


@mank319 Do you mind if I drop Gtk < 3.10 support? I could support it in theory, but this adds a lot of complications to both the main application as well as to the plugins.

I originally wanted to have it done already, but I have been very busy lately so it has been a month since I last worked on it.

Edit: I will also abandon my recurring task application in favor of a plugin as I feel this can be done without extra clutter.

JMoerman avatar Oct 25 '17 14:10 JMoerman

Comment by JMoerman Friday Oct 09, 2015 at 08:50 GMT


@trenkert What you can do right now is make a couple of classes: a class to parse a .org file to a List of Objects (the exact implementation of this object does not matter right now, it just needs to able to hold the task info) and a class to write this List back to a file.

JMoerman avatar Oct 25 '17 14:10 JMoerman

Comment by mank319 Friday Oct 09, 2015 at 12:36 GMT


@JMoerman I think we should continue the generic discussion in #61, so that others can find it more easily. Regarding Gtk < 3.10, It would be so great if we could keep it up due to older LTS distributions and the Windows branch.

If you have good reasons not to do so however, I'd prefer to maintain separate branches (with 3.10 not having the coolest, new features) but try to follow a strategy that allows for minimal maintenance overhead (if possible).

JMoerman avatar Oct 25 '17 14:10 JMoerman