From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20958 invoked by alias); 28 May 2015 20:30:50 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20233 Received: (qmail 21332 invoked from network); 28 May 2015 20:30:49 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU autolearn=ham autolearn_force=no version=3.4.0 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= Message-ID: <55677AF5.50709@thequod.de> Date: Thu, 28 May 2015 22:30:45 +0200 From: Daniel Hahler User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: zsh-users@zsh.org Subject: Re: bracketed paste mode in xterm and urxvt References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit -----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-----