From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8427 invoked by alias); 29 Feb 2016 21:09:07 -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: 21332 Received: (qmail 18328 invoked from network); 29 Feb 2016 21:09:01 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=vWB33O1uCfC22fzS5Y5yuROZQhafW4ISqGmpn0ZH8Vs=; b=G4PjknUSllROjX6j2xkVHZizY1tv2GvBR/CDXrBSRpQ28aKu09iYAEHR6zSPOKJce+ 7xSHVfsaXxeb81cEfHUaG9FJksb7tFhS1+VvvyQvscYipoUQyBFJ3ewVP7bHACcevQF8 Ial+sir5sR8AmSfn7EWXdCZ0wd16IOyHlxrq8sBwUZDcz7gsB6gcXJVG3GrXRRBwaZr0 GVssofPEko5b+3aZMU/LSGzgHxHNbwzxwx3sooMHUx59OEcXqof0QIhLtwrwWyIRIaCP CkVY9WoBScORC8M/l83S31qRGgqawuLbR3yJJNmpDWvgP7l49x4fh3B2n/oidtx+69/Y kEjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=vWB33O1uCfC22fzS5Y5yuROZQhafW4ISqGmpn0ZH8Vs=; b=Q3O0cXCMjbjQpLADjroHOHXKi9ctxRrDC4iE89NLCn+cAm4j+CalQwAsM2XRxNPV7h tnW08Kra26Sl/uAPuEhhuB7w7g6M0nyNeUG9aNuITaTfalU01qD7KcP3G/bMi6OTngtq 45KKvopnHA8HXAV/g34o52nQkogae+03O8yLoEf0TjN5TJZP9+9FmPttibbMcDlYrhdj hkYpkX31moWnzhUriXh+rkjB49bO5MUX7643XHrKPAUwmZteFfSyQcl5TVBm8O48T8TC bj05zGuMhdId6S/5/4h/e3iOP+GqanMjOeRIq7q8Gi/wQ16lJ6EuUNeTjsWO6BNG2/2G S2BQ== X-Gm-Message-State: AD7BkJLOwYj0AmQAvLSdtAHH3zXsxwOnBHKkUYtUEOxkKLzcOxE5PLBFZJt79ETlsoqFhA== X-Received: by 10.67.12.175 with SMTP id er15mr24956772pad.70.1456780138891; Mon, 29 Feb 2016 13:08:58 -0800 (PST) From: Bart Schaefer Message-Id: <160229130908.ZM4574@torch.brasslantern.com> Date: Mon, 29 Feb 2016 13:09:08 -0800 In-Reply-To: <32b9cc30.44b81ca2.56cdd282.ec124@prokonto.pl> Comments: In reply to rooom "bracketed-paste" (Feb 24, 4:55pm) References: <32b9cc30.44b81ca2.56cdd282.ec124@prokonto.pl> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: bracketed-paste MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Feb 24, 4:55pm, rooom wrote: } } How can I bind some key to a widget so that it works with pasted text? You need the bracketed-paste-magic widget: autoload -Uz bracketed-paste-magic zle -N bracketed-paste-magic bracketed-paste There have been some refinements to that (and the related internals) over the past few releases, so depending on your specific zsh version you may encounter problems with multibyte characters and widgets bound to some key sequences, but for most simple usages it should work fine. You could also turn off bracketed-paste to revert to the old behavior: unset zle_bracketed_paste