PopClip is a Mac OS X utility that will allow you to display little menu icons that perform actions on highlighted text.
This extension allows you to highlight a Perl error in a Terminal and then open the file in Sublime Text. The cursor will be moved to the line the error occured on.
Things like relative paths in the error message are handled. With magic. And AppleScript. And lsof. Honestly, you don't want to know.
Works in both Sublime Text 2 and Sublime Text 3 with autodetection, prefering to use the latter if both are installed.
- Install Popclip
- Download the extension
- Double-click it
- Confirm that you want to install the untrusted extension
Written by Mark Fowler
- Doesn't work outside of Terminal.app
- The files and paths obviously need to be local (i.e. this won't magically work over ssh)
- Paths with spaces in don't work yet. Pull requests welcome.
Further bugs, raise an issue on github.