From 7aaf51b8f553dff3124309e9cb59190fbac2af98 Mon Sep 17 00:00:00 2001 From: Jan Dolecek Date: Mon, 6 May 2013 18:57:13 +0300 Subject: [PATCH 1/2] url decode the path --- PhpStorm Protocol.app/Contents/bin/parse_url.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PhpStorm Protocol.app/Contents/bin/parse_url.sh b/PhpStorm Protocol.app/Contents/bin/parse_url.sh index 14ca80f..63851bc 100755 --- a/PhpStorm Protocol.app/Contents/bin/parse_url.sh +++ b/PhpStorm Protocol.app/Contents/bin/parse_url.sh @@ -1,7 +1,8 @@ #!/bin/sh URL="$1" +URL=$(echo "$URL" | sed "s#%2F#/#g") REGEX="^pstorm://open/\?url=file://(.*)&line=(.*)$" if [[ $URL =~ $REGEX ]]; then /usr/local/bin/pstorm "${BASH_REMATCH[1]}:${BASH_REMATCH[2]}" -fi \ No newline at end of file +fi From 385919814150fd3310cf178d064f088ac0d3f4d9 Mon Sep 17 00:00:00 2001 From: Jan Dolecek Date: Mon, 6 May 2013 18:59:54 +0300 Subject: [PATCH 2/2] update for installing on mac --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ecc8615..8349be4 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ Installing on Mac 2. go to cloned folder 2. copy folder ```PhpStorm Protocol.app``` to ```/Applications/``` folder 3. delete cloned folder +4. go to PhpStorm Menu: Tools → Create Command-Line Launcher and create it Installing on Windows =====================