Some applications. (e.g. the great "better_errors" Ruby gem [1]) encode spaces as "+" when creating txmt://-URLs. This is also the default behaviour of tje URI.encode_www_form_component and CGI.escape methods.
Currently, trying to open such an URL in TextMmate fails with "File Does not Exist".
It works correctly though if I change the URL to use "%20" instead of "+".
My question is: Should TextMate support "+" in txmt://-URLs, or should I submit a pull request for better_errors to generate URLs using "%20" instead?
Regards, Stefan
On 28 Aug 2013, at 16:51, Stefan Daschek wrote:
[…] Should TextMate support "+" in txmt://-URLs, or should I submit a pull request for better_errors to generate URLs using "%20" instead?
I pushed a commit that makes it decode ‘+’ in URLs, following the robustness principle: http://en.wikipedia.org/wiki/Robustness_principle
Am 29.08.13 13:30, schrieb Allan Odgaard:
On 28 Aug 2013, at 16:51, Stefan Daschek wrote:
[…] Should TextMate support "+" in txmt://-URLs, or should I submit a pull request for better_errors to generate URLs using "%20" instead?
I pushed a commit that makes it decode ‘+’ in URLs, following the robustness principle: http://en.wikipedia.org/wiki/Robustness_principle
Great, thanks!
S.