On Sun, Dec 20, 2009 at 12:13 AM, Evaryont <colin@...> wrote:
> Far from complete, but it is ready to be (ab)used by the public, I present Mastodon, a Ruby library to parse todo.txt files.
Awesome! Great to see this.
> I have a couple of questions, however: Can a todo have multiple contexts and/or projects associated with it?
Yes.
Also, what are the valid characters for a context? A project?
All except spaces. Contexts start with @ and projects with +.
Also, is there a really good example of what a daily todo list looks like? I don't use todo.txt (or anything else, sadly) enough to produce a decent example data set. This would be used in the tests as the golden standard for my library to support.
--- In todotxt@yahoogroups.com, "Evaryont" <colin@...> wrote:
>
> I hope you all haven't unsubscribed from the lack of activity!
>
> Far from complete, but it is ready to be (ab)used by the public, I present
Mastodon, a Ruby library to parse todo.txt files.
>
> General usage:
>
> require 'mastodon'
> todos = File.readlines("todo.txt")
> Mastodon.new(todos).find_context("work")
> # See Also: find_project
>
> The API is probably going to change once more features are supported (like
priorities). I'll keep you all informed here of new changes if there is
interest.
>
> I have a couple of questions, however: Can a todo have multiple contexts
and/or projects associated with it? Also, what are the valid characters for a
context? A project?
>
...yep, I forgot the link. Here it is: http://github.com/evaryont/mastodon
Hosted on GitHub, so go ahead and fork away! :)
--- In todotxt@yahoogroups.com, "Evaryont" <colin@...> wrote:
>
> I hope you all haven't unsubscribed from the lack of activity!
>
> Far from complete, but it is ready to be (ab)used by the public, I present
Mastodon, a Ruby library to parse todo.txt files.
>
> General usage:
>
> require 'mastodon'
> todos = File.readlines("todo.txt")
> Mastodon.new(todos).find_context("work")
> # See Also: find_project
>
> The API is probably going to change once more features are supported (like
priorities). I'll keep you all informed here of new changes if there is
interest.
>
> I have a couple of questions, however: Can a todo have multiple contexts
and/or projects associated with it? Also, what are the valid characters for a
context? A project?
>
Also, is there a really good example of what a daily todo list looks like? I
don't use todo.txt (or anything else, sadly) enough to produce a decent example
data set. This would be used in the tests as the golden standard for my library
to support.
I hope you all haven't unsubscribed from the lack of activity!
Far from complete, but it is ready to be (ab)used by the public, I present
Mastodon, a Ruby library to parse todo.txt files.
General usage:
require 'mastodon'
todos = File.readlines("todo.txt")
Mastodon.new(todos).find_context("work")
# See Also: find_project
The API is probably going to change once more features are supported (like
priorities). I'll keep you all informed here of new changes if there is
interest.
I have a couple of questions, however: Can a todo have multiple contexts and/or
projects associated with it? Also, what are the valid characters for a context?
A project?
Hi there
I'm trying to set up todo.txt (with Windows XP and cygwin), and I can't get past
square one. I've had a good look through the posts, but nothing seems to help.
When I type in
chmod +x todo.sh
I get a "no such file or directory error". When I type in the full path
(/Desktop/todo/todo.sh) I also get the same error. My working directory is
/home/USERNAME. I've tried relocating the todo.txt folder to cygwin/ cygwin/bin/
and USERNAME/ but this doesn't seem to work.
Many thanks!
Nick
Ok, Thank you.
My mistake, I have only check this deprecated page of the website :
http://www.todotxt.com/library/todo.sh/
--- In todotxt@yahoogroups.com, Frederik Dohr <fdg001@...> wrote:
>
> > As one can see a "foo" has disappeared when the task has been re-prioritized
...
>
> I cannot seem to reproduce this with the nightly version (2009-09-21):
> $ t a "foo (foo) @random"
> TODO: 'foo (foo) @random' added on line 243.
> $ t pri 243 a
> 243: (A) foo (foo) @random
> TODO: 243 prioritized (A).
> $ t pri 243 b
> 243: (B) foo (foo) @random
> TODO: 243 prioritized (B).
>
> The latest release (v2.4) is available here:
> http://github.com/ginatrapani/todo.txt-cli/downloads
>
>
> -- F.
>
> As one can see a "foo" has disappeared when the task has been re-prioritized
...
I cannot seem to reproduce this with the nightly version (2009-09-21):
$ t a "foo (foo) @random"
TODO: 'foo (foo) @random' added on line 243.
$ t pri 243 a
243: (A) foo (foo) @random
TODO: 243 prioritized (A).
$ t pri 243 b
243: (B) foo (foo) @random
TODO: 243 prioritized (B).
The latest release (v2.4) is available here:
http://github.com/ginatrapani/todo.txt-cli/downloads
-- F.
Hi,
I'm currently working with 2.1 version of todo.sh written by Gina in november
last year.
With this version thre is a bug if you type the following commands (considering
that you have a t alias for todo.sh):
""
$ t a "foo (foo) @random"
TODO: 'foo (foo) @random' added on line 83.
$ t pri 83 A
83: (A) foo (foo) @random
TODO: 83 prioritized (A).
$ t pri 83 B
83: (B) @random
TODO: 83 prioritized (B).
""
As one can see a "foo" has disappeared when the task has been re-prioritized ...
I have spot the problem, and here is a correction proposal (diff between my new
todo.sh and the v2.1):
""
417c417
< sed -i.bak $item"s/^(.*) //" "$TODO_FILE"
---
> sed -i.bak $item"s/^([A-Z]) //" "$TODO_FILE"
638c638
< sed -e $item"s/^(.*) //" -e $item"s/^/($newpri) /" "$TODO_FILE" > /dev/null
2>&1
---
> sed -e $item"s/^([A-Z]) //" -e $item"s/^/($newpri) /" "$TODO_FILE" >
/dev/null 2>&1
642c642
< sed -i.bak -e $2"s/^(.*) //" -e $2"s/^/($newpri) /" "$TODO_FILE"
---
> sed -i.bak -e $2"s/^([A-Z]) //" -e $2"s/^/($newpri) /" "$TODO_FILE"
706c706
""
Am I the only one to use parenthesis in the description of my tasks ?
Is there a new version I have miss ?
mammoth's foot
Ps : Is there a way to upload files with messages ?
My apologies, I'm working though old messages on the list. Don Harper brought up
the concept of nested projects, has anyone done any additional work on this?
--- In todotxt@yahoogroups.com, Don Harper <duck@...> wrote:
> One of the features I
> really like about todo.py that is not in todo.sh (yet :) ) is the whole
> concept of parent/child tasks. Basically, a child task is not listed by
> default until the parent is marked done. Since I have many projects in
> flight at any given point, this lets me focus on what is next on the
> queue (GTD-ism of looking at Next Action Items).
Whoops -- just came across the script to do exactly this posted August by
robinmessage:
http://tech.groups.yahoo.com/group/todotxt/message/2399
Thanks,
C
--- In todotxt@yahoogroups.com, "cisforcory@..." <cisforcory@...> wrote:
>
> Hi all,
>
> I've been playing with todo.sh for a few days, trying to determine if it'll
work better for me than my current cumbersome implementation using Omniview on
the mac and iphone.
>
> There are a few features which I think would really help me implement, but I
didn't want to throw them into a giant tl;dr message.
>
> - Tab completion of Projects and Contexts
>
> In the same way that bash autocompletes parameters, why not use
bash_completion to autocomplete Projects and Contexts? I haven't looked much
into bash_completion, but can it source other locations?
>
Hi all,
I've been playing with todo.sh for a few days, trying to determine if it'll work
better for me than my current cumbersome implementation using Omniview on the
mac and iphone.
There are a few features which I think would really help me implement, but I
didn't want to throw them into a giant tl;dr message.
- Tab completion of Projects and Contexts
In the same way that bash autocompletes parameters, why not use bash_completion
to autocomplete Projects and Contexts? I haven't looked much into
bash_completion, but can it source other locations?
Mm that's a strange question on a mailing list dedicated to the todotxt
script...
The screenshot you see is actually simply a part of todotxt bash script (she's
mentioning it somewhere later in her article)
See http://github.com/ginatrapani/todo.txt-cli/blob/master/todo.sh
Around line 568, this is the screenshot part.
Enjoy!
Gina has gone from the Beautiful Goddess of the Internet (following Leo's
Presidency), to the dark side (just kidding, Gina). She posted a jpeg image of
what appears to me as Bash script for managing ToDo on Lifehacker, in the
article on beginning programming, which cuts off the right side of the code.
If anyone has the script, can you post?
OBTW - thanks for all the good stuff Gina, can't wait for more TWIGs....
Okay (no problem ;-), thanks for your answer!
--- In todotxt@yahoogroups.com, Gina Trapani <ginatrapani@...> wrote:
>
> On Tue, Nov 3, 2009 at 5:49 AM, zenimot <zenimot@...> wrote:
>
> > NOTE: with 'check' I mean 'the task is done'
>
>
> There isn't a way to mark an item as done in any file other than todo.txt
> right now in the core script. Sorry about that!
>
> --
> http://ginatrapani.org
> http://twitter.com/ginatrapani
>