samg / timetrap

Simple command line timetracker
http://rubygems.org/gems/timetrap
Other
1.48k stars 116 forks source link

t now command when not on a task #60

Closed joeyjoejoejr closed 11 years ago

joeyjoejoejr commented 11 years ago

It's not a huge deal, but I've been working on getting timetrap to output into tmux status bars. The problem I've been having with displaying the currently running task, is that if I'm not on a task it just displays the "not running" message.

My suggestion would be to put that message to standard error instead of standard out. That way you wouldn't have to check the content of the message to prevent displaying it.

I'd be happy to submit a pull request if this is something you think would be useful.

samg commented 11 years ago

Sounds like a good idea. In timetrap I've tried to send errors and other messages to STDERR and only entry data to STDOUT. I think this fits with that model. If you wanted to change the puts call to warn I'd happily merge that.

samg commented 11 years ago

Just released in gem version 1.8.7.

Thanks for the contribution!