Skip to content
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

use org-mode format as an option #68

Open
trenkert opened this issue Oct 7, 2015 · 6 comments
Open

use org-mode format as an option #68

trenkert opened this issue Oct 7, 2015 · 6 comments

Comments

@trenkert
Copy link

trenkert commented Oct 7, 2015

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?

@Manuel-Kehl
Copy link
Owner

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
Copy link
Collaborator

JMoerman commented Oct 8, 2015

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

@Manuel-Kehl
Copy link
Owner

@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 👍

@JMoerman
Copy link
Collaborator

JMoerman commented Oct 8, 2015

@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
Copy link
Collaborator

JMoerman commented Oct 9, 2015

@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.

@Manuel-Kehl
Copy link
Owner

@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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants