Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sgress454/9338749 to your computer and use it in GitHub Desktop.
Save sgress454/9338749 to your computer and use it in GitHub Desktop.
iTerm smart select to open Node stack traces in Sublime
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