Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: bracketed paste mode in xterm and urxvt
- X-seq: zsh-users 20233
- From: Daniel Hahler <genml+zsh-workers@xxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: bracketed paste mode in xterm and urxvt
- Date: Thu, 28 May 2015 22:30:45 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thequod.de; h= content-transfer-encoding:content-type:content-type:in-reply-to :references:subject:subject:mime-version:user-agent:from:from :date:date:message-id:received:received; s=postfix2; t= 1432845045; bh=qe3oI+3IlpaRtSBX5A0ug2d0OtS2JjM9k8kT01dQyWU=; b=O EU6p/NG9wEWjfhdNmP0p3HVEI056xiPiW/FD4hfTWQjz/pgWVmcu5xnmH4GKK7hr 1/Wg13NGO5cHT08VIWH5nPXwk24v8DuFPH0I7lYckZXyqL1XluCHcjyL8z8uniCz epbO1wPKIhSIxhDawS1m/b4BUrrr5zu/4/V1ZtYBa0=
- In-reply-to: <CAFOazAOfk=Sq-smkMGzJKO4b7jMb_1_m4vXXn8twoVA2wV55YA@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <BANLkTikh_-+L2W5=Yfu7h7iAe5CcpP6fxw@mail.gmail.com> <CAFOazAOfk=Sq-smkMGzJKO4b7jMb_1_m4vXXn8twoVA2wV55YA@mail.gmail.com>
-----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