From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: zsh-users@zsh.org
Subject: Re: Shift-Insert overwrites ZLE CUTBUFFER
Date: Thu, 3 Nov 2016 19:45:33 +0000 [thread overview]
Message-ID: <20161103194533.GA31207@fujitsu.shahaf.local2> (raw)
In-Reply-To: <20161101170328.GA24091__43513.8293811635$1478019914$gmane$org@fujitsu.shahaf.local2>
Daniel Shahaf wrote on Tue, Nov 01, 2016 at 17:03:28 +0000:
> Oliver Kiddle wrote on Mon, Oct 31, 2016 at 16:56:54 +0100:
> > On 27 Oct, Bart wrote:
> > If Daniel's documentation from 22036 is applied, it should probably
> > also mention that in vi mode, it allows a register to be specified
> > to capture a paste. In that case, the text isn't inserted.
>
> It had already been applied. Here's a shot at the new text;
A bug was pointed out off-list after I committed the new text. Here's
another shot for review. The last hunk is in vi-set-buffer's docs.
diff --git a/Doc/Zsh/zle.yo b/Doc/Zsh/zle.yo
index 63f673b..b7bb23b 100644
--- a/Doc/Zsh/zle.yo
+++ b/Doc/Zsh/zle.yo
@@ -2176,11 +2176,13 @@ 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.
-When invoked interactively, the pasted text is inserted to the buffer.
+When invoked interactively, the pasted text is inserted to the buffer
+and placed in the cutbuffer.
If a numeric argument is given, shell quoting will be applied to the
pasted text before it is inserted.
-The text is also placed in the cutbuffer, or in the specified register
-(tt("x) in vi mode).
+
+When a named buffer is specified with tt(vi-set-buffer) (tt("x)),
+the pasted text is stored in that named buffer but not inserted.
When called from a widget function as `tt(bracketed-paste) var(name)`, the
pasted text is assigned to the variable var(name) and no other processing is
@@ -2410,7 +2412,7 @@ concerned replaces the previous contents of the specified buffer. If
a named buffer is specified using a capital, the newly cut text is
appended to the buffer instead of overwriting it. When using the tt("_)
buffer, nothing happens. This can be useful for deleting text without
-affecting the normal registers.
+affecting any buffers.
If no buffer is specified for a cut or change command, tt("1) is used, and
the contents of tt("1) to tt("8) are each shifted along one buffer;
next prev parent reply other threads:[~2016-11-03 19:45 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-25 12:46 lolilolicon
2016-10-25 16:12 ` Bart Schaefer
2016-10-25 16:28 ` lolilolicon
2016-10-26 16:01 ` Bart Schaefer
2016-10-26 16:12 ` lolilolicon
2016-10-26 23:51 ` Bart Schaefer
2016-10-27 19:56 ` Greg Klanderman
2016-10-27 20:35 ` Bart Schaefer
2016-10-31 15:56 ` Oliver Kiddle
2016-10-31 16:16 ` Peter Stephenson
[not found] ` <43312.1477929414__19178.7032563754$1477929872$gmane$org@hydra.kiddle.eu>
2016-11-01 17:03 ` Daniel Shahaf
[not found] ` <20161101170328.GA24091__43513.8293811635$1478019914$gmane$org@fujitsu.shahaf.local2>
2016-11-03 19:45 ` Daniel Shahaf [this message]
[not found] ` <161026165138.ZM12130__24043.0697137073$1477525984$gmane$org@torch.brasslantern.com>
2016-10-27 0:45 ` Daniel Shahaf
[not found] ` <20161027004500.GA12759__18780.7835791775$1477529337$gmane$org@fujitsu.shahaf.local2>
2016-10-27 12:59 ` Daniel Shahaf
2016-10-26 22:05 ` Mikael Magnusson
2016-10-26 23:59 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161103194533.GA31207@fujitsu.shahaf.local2 \
--to=d.s@daniel.shahaf.name \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).