Skip to content

Instantly share code, notes, and snippets.

@wojtha
Created February 16, 2013 18:47
Show Gist options
  • Save wojtha/4968174 to your computer and use it in GitHub Desktop.
Save wojtha/4968174 to your computer and use it in GitHub Desktop.
# Create good links for Windows and Sublime Text 2 after install SublimeProtocol:
# https://bitbucket.org/sublimator/sublimeprotocol/overview
#
# slice(9) is for remove ':' from URL eg. "C:/WWW" => "C/WWW"
def remove_colon(url)
url.slice!(9)
return url
end
BetterErrors.editor = proc { |file, line|
remove_colon("sblm:///#{file}%3A#{line}%3A1?commands=%5B%5D")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment