A few updates #24

Closed
wants to merge 26 commits into
from

Conversation

Projects
None yet
2 participants
Collaborator

stephenmckinney commented Dec 7, 2012

Most likely you're not still supporting this gem, but I've had fun using it and added a few features that made it more useful for myself after seeing the Pomodoro plugin for RubyMine I wanted something similar in iTerm2.

Here's the punchlist:

  • Added detach mode, on by default. To get the 1.x progress bar run pomo start -p. Closes #1
  • Added notification support for Mac OS X User Notifications on OS X 10.8+,
    and libnotify for Linux. Growl continues to be supported on OS X 10.7 or earlier. Closes #23
  • Added output of pomo timer to ~/.pomo_stat.
  • Added pomo ls as an alias to pomo list

The ~/.pomo_stat feature enables Tmux status lines, etc. to read this file and display the current time left in a Pomodoro e.g.

Screenshot

Screenshot

Screenshot

in tmux.conf

# status bar refresh rate (seconds)
set -g status-interval 3
# right status bar
set-option -g status-right '#[bold]⡇ #H ⡇ #(~/.bin/pomo)  ⡇ #(~/.bin/battery) ⡇ %b %d %I:%M%p '

~/.bin/pomo

#!/bin/sh

# Display timer as red if less than 5 mins and
# green for greater that 5 mins. 0 is not changed.
echo $(cat ~/.pomo_stat) | \
sed \
-e 's/^\([1-5]\):00/#[default]#[fg=red]\1:00#[default]#[bold]/' \
-e 's/^\([1-9][0-9]\{0,1\}\):00/#[default]#[fg=green]\1:00#[default]#[bold]/'

stephenmckinney added some commits Dec 2, 2012

Adds writing of pomo timer to ~/.pomo_stat
This enables Vim and Tmux status lines to read this file
and display the current time left in a Pomodoro.
Adds ability to add/rm tasks during running tasks in detach mode. [#1]
Also locks `pomo start` so that other pomo cannot be started
while others are running.
Bumps version to 2.0.0
Following SemVer as backwards incompatible changes have been
introduced. `pomo start` runs in the background by default.
To get 1.x progress bar, users must execute `pomo start -p`
Adds configuration file ~/.pomorc, tmux integration, refactors code
options include notifier, pomo_stat, and tmux.
* default notifier depends on OS
* default writing to ~/.pomo_stat file is false
* default tmux integration is false
Adjust pomo_stat output for Breaks
Break output: *4:00

Task output: 4:00

The star can be used in regexp to add color in tmux
status bar.
Collaborator

stephenmckinney commented Dec 13, 2012

If you're not interested in maintaining the pomo gem, there are some options:

  1. I can take over maintenance and you can give me access to push the gem to rubygems OR
  2. I could just make a fork called 'pomo2' or something and push my own gem

I'm interested in adding more features like: pomo pause/stop; having pomodoro sets so that you can take a long break after 3 or 4 pomodoros; adding pomo sets, duration, short break, and long break into .pomorc, etc.

Owner

tj commented Dec 13, 2012

im happy to give you access, i dont remember how to do that with gem though

Collaborator

stephenmckinney commented Dec 13, 2012

To add me as an owner, you can execute the following:

gem owner pomo --add stevemckinney@gmail.com

Owner

tj commented Dec 13, 2012

hmm apparently my credentials are gone haha, fuck it, ill have to look into it later, centralized registries ftw

Collaborator

stephenmckinney commented Dec 13, 2012

LOL. OK. Going to https://rubygems.org/profile/edit under 'API Access' should point you in the right direction.

Steve McKinney

On Thursday, December 13, 2012 at 4:18 PM, TJ Holowaychuk wrote:

hmm apparently my credentials are gone haha, fuck it, ill have to look into it later, centralized registries ftw


Reply to this email directly or view it on GitHub (visionmedia#24 (comment)).

Owner

tj commented Dec 13, 2012

k done

Collaborator

stephenmckinney commented Dec 13, 2012

nice. thx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment