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 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 =====================