Skip to content

Conversation

@jimrubenstein
Copy link
Contributor

As I mentioned in #21, I often forget to restore focus to Sublime after running my tests.

This enhancement adds 2 new options (and supporting readme material) for automatically restoring focus to Sublime after tests are run.

By default, autofocus is off. I expect it's fine for most people. But when I have my terminal on one screen and Sublime in the other, it's super handy to have focus automatically be restored. I rarely ever need to type more terminal commands after my test suite starts.

@jimrubenstein jimrubenstein force-pushed the feature/refocus-sublime-after-tests-run branch from ed92506 to 913fffc Compare April 20, 2017 21:40
@eby
Copy link

eby commented Aug 1, 2017

I did similar to this but instead of tabbing over I used the following:

tell application "System Events" to tell process "Sublime Text"
		set frontmost to true
end tell

Seems to work but not sure if it is the best method either.

@jimrubenstein
Copy link
Contributor Author

jimrubenstein commented Aug 2, 2017 via email

@eby
Copy link

eby commented Aug 2, 2017

I had the hang issue if I followed any of the suggestions of activate or window index but the frontmost seems to work without a hang, at least on my setup.

bakerkretzmar added a commit to bakerkretzmar/sublime-phpunit that referenced this pull request Jul 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants