Created
August 22, 2012 05:23
-
-
Save dvydra/3422479 to your computer and use it in GitHub Desktop.
Click on filename in terminal and open file in rubymine
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
1) Install iTerm2, it's awesome. | |
2) locate your rubymine commandline integration thingy, it's usually `/usr/local/bin/mine` | |
3) Open iTerm2 preferences. Go to Profiles -> Default -> Advanced. | |
4) Select "Run command..." under Semantic History | |
5) Enter "/usr/local/bin/mine --line \2 \1" as the command | |
6) Command-Click on a filename in the terminal, like in an rspec output, or git status result | |
7) Enjoy the fineness. |
It works for me
[ -z "\2" ] && /usr/local/bin/mine \1 || /usr/local/bin/mine --line \2 \1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Above didn't work for me. This did though: https://coderwall.com/p/mdgc4g/quickly-open-files-in-iterm-with-rubymine-on-macos
/Applications/RubyMine.app/Contents/MacOS/rubymine \5 --line \2 \1