colinta / SublimeStringEncode

Converts characters from one "encoding" to another using a transformation (think HTML entities, not character encodings)
Other
150 stars 22 forks source link

url_encode uses '+' instead of '%20' #25

Closed Rio517 closed 9 years ago

Rio517 commented 9 years ago

I noticed that for the past year or so the url_encode function of the package tends to encode URLs with a plus sign instead of the more safe %20. Is there a chance we can use %20 or enable an option for it?

Thanks!

colinta commented 9 years ago

I like that idea!

colinta commented 9 years ago

Available in 2.1.0 as the old_school argument. Defaults to True, for backwards compatibility, but set it to False to get your desired behavior. Let me know if there are more characters like this (or submit a PR :smiley:).

{ "keys": ["super+shift+5"], "command": "url_encode", "args": {"old_school": false} }
Rio517 commented 9 years ago

Wow. Thanks man! :)