Created
October 22, 2011 11:50
-
-
Save gregd/1305906 to your computer and use it in GitHub Desktop.
Ubuntu 11.10 RubyMine and rails-footnotes gem
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
[Default Applications] | |
x-scheme-handler/txmt=openInMine.desktop |
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
#!/home/scottp/.rvm/bin/rvm-auto-ruby | |
#Change the #! line to reflect the location of ruby in your environment | |
require 'uri' | |
require 'cgi' | |
my_url = CGI::parse(URI::parse(ARGV[0]).query) | |
file = URI::parse(my_url['url'][0]).path | |
line = my_url['line'][0] | |
#my mine command is located in /usr/local/bin | |
#YMMV, change following line as needed. | |
exec "mine -l #{line} #{file}" |
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
[Desktop Entry] | |
Name=openInMine | |
Comment=RubyMine mine cmd | |
Exec=/usr/local/bin/openInMine %u | |
Terminal=false | |
Type=Application | |
Categories=Application; | |
StartupNotify=false | |
MimeType=x-scheme-handler/txmt; | |
NoDisplay=true |
Works great with better_errors gem and Xubuntu 13.10. Thanks!
I had to sudo chmod +x openInMine
before it would work, in case it helps anyone else. 😄
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Awesome! Works great for me in Gnome Shell too. thanks for the update!