Created
March 4, 2014 01:49
-
-
Save sgress454/9338749 to your computer and use it in GitHub Desktop.
iTerm smart select to open Node stack traces in Sublime
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
To set up iTerm 2 so you can open files referenced in a Node stack trace directly in Sublime: | |
1. Go to Preferences->Advanced | |
2. Under "Smart Selection", click the "EDIT" button | |
3. Click the + to add a new rule | |
4. For the Regular expression, user ^\s*at.*\((.+)\) | |
5. For priority, choose Very High | |
6. Click "Edit Actions" | |
7. Click the + to add a new action | |
8. Title "Open in Sublime" | |
9. Action "Run Command" | |
10. Parameter "subl \1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment