Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: bracketed-paste
- X-seq: zsh-users 21332
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: bracketed-paste
- Date: Mon, 29 Feb 2016 13:09:08 -0800
- 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==
- In-reply-to: <32b9cc30.44b81ca2.56cdd282.ec124@prokonto.pl>
- 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: <32b9cc30.44b81ca2.56cdd282.ec124@prokonto.pl>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author