Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add preference to start/pause/stop Guard via POSIX signals #62

Open
shanesveller opened this Issue · 0 comments

1 participant

Shane Sveller
Shane Sveller

For reference: https://github.com/guard/guard#signals

The new pry-based interface for guard is making my guard panel within ST2 chaotic and sometimes unreliable. If I add interactor :off to my Guardfile, and the sublime_guard plugin supported this mechanism, I could manage some guard functionality using POSIX signals instead of STDIN.

Via terminal:

# Pause watching:
$ kill -USR1 <guard_pid>

# Resume watching:
$ kill -USR2 <guard_pid>

# Stop watching:
$ kill <guard_pid>

Would require that ST2 be keeping track of Guard's PID somehow, and be able to emit those POSIX signals via the kill command or another mechanism.

Will try to research further to see if this is something I could create a pull request for, just wanted to jot down these thoughts before my laptop battery dies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.