summarylogtreecommitdiffstats
path: root/subl3-url-handler
blob: e92a06bffb2c442d9c8842298b860202be6baf0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash

# Delete first 23 characters
request=${1:23}          

# Decode URL
request=$(echo $request | echo -e "$(sed 's/+/ /g; s/%/\\x/g')")

# Replace &line= with :
request=${request/&line=/:}

# Replace &column= with :
request=${request/&column=/:}

# Launch Sublime
subl3 $request