Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Escaping of pasted URLs no more works with 5.0.8-test-3 (compared to 5.0.8)


On Thu, Aug 27, 2015 at 09:28:34AM -0700, Bart Schaefer wrote:
> On Aug 27,  6:09pm, Axel Beckert wrote:
> } In zsh 5.0.8-test-3, nothing is escaped anymore:
> } 
> } While I generally consider this to be a good idea for line breaks and
> } friends, not escaping pasted URLs anymore is IMHO definitely a
> } regression and a loss of a very nice feature.
> You need Functions/Zle/bracketed-paste-magic to go with url-quote-magic

Thanks for that hint. I've added the following to my zshrc directly
after "zle -N self-insert url-quote-magic":

  autoload -Uz bracketed-paste-magic
  zle -N bracketed-paste bracketed-paste-magic

(as mentioned inside a comment in

Now it seems to work again, thanks! Interestingly zsh 5.0.8 seems to
have no issue with that config either, so I don't have to guard it
with some version test. Neat!

> I should probably write actual contrib.yo documentation for these at
> some point, it seems from the feedback as though url-quote-magic is
> a lot more widely used than I thought.

Hehe. Yeah, I consider it one of the best zsh features, at least a
very good selling argument. :-)

		Kind regards, Axel
/~\  Plain Text Ribbon Campaign                   | Axel Beckert
\ /  Say No to HTML in E-Mail and News            | abe@xxxxxxxxxxxxxxx  (Mail)
 X   See http://www.nonhtmlmail.org/campaign.html | abe@xxxxxxxxx (Mail+Jabber)
/ \  I love long mails: http://email.is-not-s.ms/ | http://abe.noone.org/ (Web)

Messages sorted by: Reverse Date, Date, Thread, Author