olimorris / tmux-pomodoro-plus

🍅 Incorporate the Pomodoro technique into your tmux workflow
MIT License
274 stars 23 forks source link

Action: restart a pomodoro #41

Closed dgmstuart closed 4 months ago

dgmstuart commented 4 months ago

Sometimes I mess up and don't realise I've already had a timer running.

This adds a binding to restart the timer without incrementing the number of pomodoros or having to skip through a break.

Tested the script part by running ./scripts/pomodoro.sh restart, but I'm not sure how to test through Tmux.

olimorris commented 4 months ago

Firstly, thanks so much for the PR.

In order to test your changes, point your tmux config to the local version of the plugin:

run '~/Code/Shell/tmux-pomodoro-plus/pomodoro.tmux'
dgmstuart commented 4 months ago

Firstly, thanks so much for the PR.

My pleasure!

In order to test your changes, point your tmux config to the local version of the plugin:

run '~/Code/Shell/tmux-pomodoro-plus/pomodoro.tmux'

Nice! I included that in in my .tmux.conf after the run '~/.tmux/plugins/tpm/tpm' (modified to point to the right path on my machine of course) and it runs!

I noticed I left some debug output in there - let me just force-push that out of existence

dgmstuart commented 4 months ago

Yup - looks like it works!

olimorris commented 4 months ago

Just tested this too. Works great!