generated from mattbrictson/gem
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add keyboard commands to watch mode (#7)
This commit makes watch mode interactive. It now understands these keys: - Press ENTER to run all tests - Press "q" to quit To do this, I start another background thread that listens for key presses. When a key is pressed, the thread posts a `:keypress` event to the event loop. The event loop then takes an appropriate action. Because they keypress listener is running in a thread separate from the file system listener, that means the watcher is still able to detect changes to files and auto-run tests. The event loop funnels all of these events into a single thread of execution.
- Loading branch information
1 parent
dedbded
commit fc76461
Showing
4 changed files
with
83 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters