Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion PhpStorm Protocol.app/Contents/bin/parse_url.sh
Original file line number Diff line number Diff line change
@@ -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
fi
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
=====================
Expand Down