tj / pomo

Ruby Pomodoro app for the command-line (time / task management)
MIT License
525 stars 53 forks source link

Add hook support #8

Closed tj closed 11 years ago

stephenmckinney commented 11 years ago

Could you provide any more details on what you had in mind here?

cgardner commented 11 years ago

I would love to see this as well. :+1:

tj commented 11 years ago

kinda like git hooks

tj commented 11 years ago

I never remember to use pomo anymore though haha

stephenmckinney commented 11 years ago

I could see how this could be useful, although most of the uses I have for it (tmux refresh and notification are already baked in).

To avoid a ~/.pomo/hooks directory, would it suffice to have one-liners in the ~/.pomorc?:

e.g.

:pre-start: osascript -e 'tell application "Quicksilver" to show large type "Starting task"
:post-start: osascript -e 'tell application "Quicksilver" to show large type "Ending task"
:pre-break: osascript -e 'tell application "Quicksilver" to show large type "Starting break"
:post-break: osascript -e 'tell application "Quicksilver" to show large type "Ending break"
stephenmckinney commented 11 years ago

Closing due to lack of feedback. Will open back up if some more details come through.

barraponto commented 11 years ago

I'd like to tweet my pomodoros to a specific account (using t) after every pomodoro, open a redmine url in firefox (with issue number coming from task) as soon as the pomodoro starts (and ends), or run git status when pomodoro ends.