Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Shift-Insert overwrites ZLE CUTBUFFER
- X-seq: zsh-users 22035
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Shift-Insert overwrites ZLE CUTBUFFER
- Date: Thu, 27 Oct 2016 00:45:00 +0000
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=YwtVi8iWTX4QTZS zl/qQQQvVPRs=; b=0vqbmPwQi1XzcB9oLQdgh1z87XRLw8vbhu3OB6orCFxTMJi uhpqF14dd0RCL5yde5GRN1p14qq2VtyyOabSN53pwZXr5N2L8f4LR25zGNkaTvpQ xx7Ri+EVZeqw8j+UtcEFIDOoDTlC/4QdThgIE1pCvEGxKXxg6HM4V58wAirA=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=smtpout; bh=YwtVi8iWTX4QTZ Szl/qQQQvVPRs=; b=qpGGPKaTryMzekiI9s0ifIvIOuCsHYXaeYgCJG6MyxcocI bW/e7uWfUA79SoHLA3NzjzBmA203f+lp8xRoNfC3s8irUcpKE7/D9OHZ7zYKPEu5 2/jthHg8uZGeb9+zE9Fic7oHEP5EbgT7GaJl8MJsuapj4lLyDuat2x+R2sc5E=
- In-reply-to: <161026165138.ZM12130__24043.0697137073$1477525984$gmane$org@torch.brasslantern.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: <CAMtVo_PG_fd62V1FZ4r7fRUragzzS6H4McN5sO1=hhY=6DR6Yg@mail.gmail.com> <161025091249.ZM7232@torch.brasslantern.com> <CAMtVo_N6qOQr++Amzn11+m3pkOxjc908mwFUerur77+OWd92uw@mail.gmail.com> <161026090133.ZM11120@torch.brasslantern.com> <CAMtVo_P09j6fyJytA21iu_qOom6bCTvJEWn-dXTBX97Bp00Sdg@mail.gmail.com> <161026165138.ZM12130__24043.0697137073$1477525984$gmane$org@torch.brasslantern.com>
Bart Schaefer wrote on Wed, Oct 26, 2016 at 16:51:38 -0700:
> On Oct 27, 12:12am, lolilolicon wrote:
> } This doesn't seem to be documented, so I think it's OK to change it.
>
> Good point that it should be documented.
>
The following documents the incumbent killring behaviour, and rearranges
text to clarify that a numeric argument is ignored when a positional
argument is present.
diff --git a/Doc/Zsh/zle.yo b/Doc/Zsh/zle.yo
index 726e973..3fb7f42 100644
--- a/Doc/Zsh/zle.yo
+++ b/Doc/Zsh/zle.yo
@@ -2176,10 +2176,12 @@ item(tt(bracketed-paste))(
This widget is invoked when text is pasted to the terminal emulator. It
is not intended to be bound to actual keys but instead to the special
sequence generated by the terminal emulator when text is pasted.
+
+If called from a widget function and a positional argument is given,
+it is interpreted as a variable name to which the pasted text is assigned.
+Otherwise, the pasted text is inserted to the buffer and added to the kill ring.
If a numeric argument is given, shell quoting will be applied to the
-pasted text before it is inserted. When called from a widget function,
-an argument can be given to specify a variable to which pasted text is
-assigned.
+pasted text before it is inserted.
See also the tt(zle_bracketed_paste) parameter.
)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author