-
-
Save talyric/5615739 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 hidden or 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/andrew/.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 hidden or 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See updated project at https://github.com/talyric/rubymine-txmt-ubuntu
or
Copy defaults.list, openInMine.desktop to ~/.local/share/applications and openInMine to /usr/local/bin
make openInMine executable.