ITerm2: Jump to Location in Sublime Text 2/3
Just a quick timesaver: Jump from stack traces in iTerm 2 straight to the right location in Sublime Text 3.
Click on a exeption...
And check it out in Sublime Text...
Configure iTerm 2
If you already setup your subl command, just go to your iterm 2 Preferences and paste this:
/usr/local/bin/subl \1:\2
Under Profiles > Advanced > Semantic History:
Happy coding!!
Written by Adrian
Related protips
4 Responses
awesome tip, it does work when the stack has file:line but for some reason javacript is file:line:column and iterm fails there. do you know any workarround to that?
Really great timesaver, thank you!
@jfromaniello
Yes you can parse the location information manually like Fabbi did for python error messages, please see on reddit:
http://www.reddit.com/r/SublimeText/comments/1kanze/iterm2_jump_to_location_in_sublime_text_23/
Unfortunately I'm pretty busy right know, otherwise I would probably start a shell script which automatically determines if it's a javascript/python/php or any other (images/...) file and opens it in the right app. Maybe I'll get to it in a week...
In my current build version 3, it's possible to select 'Open with Editor' instead of 'Always run command' and then choose Sublime 3/2 as option