-
-
Save p4ul/2582617 to your computer and use it in GitHub Desktop.
Sublime Text ubuntu xdebug url handler
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
#~/.local/share/applications/mimeapps.list | |
[Added Associations] | |
#... | |
x-scheme-handler/subl=subl-urlhandler.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
#/usr/share/applications/subl-urlhandler.desktop | |
[Desktop Entry] | |
Version=1.0 | |
Name=Sublime Text 2 | |
Name[en_PH]=Sublime Text 2 | |
Exec=xdebug-urlhandler %u | |
Icon=/opt/subl/Icon/48x48/sublime_text.png #change this to your sublime install location | |
Terminal=false | |
Type=Application | |
Categories=Development; | |
StartupNotify=true | |
MimeType=x-scheme-handler/subl; |
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
#!/bin/bash | |
#/usr/bin/xdebug-urlhandler | |
url=$1 | |
file=${url#subl*//} | |
path=`expr "$file" : '\(.*\)\?@'` | |
line=${file#*@} | |
subl $path:$line #change subl to your sublime text editor exec path |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment