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

Re: bracketed paste mode in xterm and urxvt



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 28.05.2015 13:42, Jérémie Roquet wrote:

> This is with no doubt one of the most useful additions I've
> done to my config in years.

I've stumbled upon it recently, too, and noticed that the handling of
zle-line-init and zle-line-finish should be improved to not overwrite
an already defined function.

I am using the following pattern to add additional code to these hooks:

  eval "zle-line-init()   { something_new; $functions[zle-line-init]; }"
  eval "zle-line-finish() { something_new; $functions[zle-line-finish]; }"

Does this make sense?
Would this be something that add-zsh-hook could provide?

Apart from that I think that this (bracketed paste mode) should be
included in Zsh's and get maintained this way.  Then it could also be
adjusted for vi-mode.

A variant of this is included in oh-my-zsh, too:
https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/safe-paste/safe-paste.plugin.zsh


Regards,
Daniel.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iD8DBQFVZ3r1fAK/hT/mPgARAl6LAKCwfEev8BBAv34+07MN4IMu+A4V+gCfT1he
DrAUaMop7PJDOiBNSMSnrQo=
=IswQ
-----END PGP SIGNATURE-----



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