From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2320 invoked by alias); 1 Nov 2016 17:03:36 -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: 22063 Received: (qmail 15396 invoked from network); 1 Nov 2016 17:03:36 -0000 X-Qmail-Scanner-Diagnostics: from out2-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(66.111.4.26):SA:0(0.0/5.0):. Processed in 0.333689 secs); 01 Nov 2016 17:03:36 -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=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) 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=KpsM89CWO3nJngs aXk/8GJOyVoc=; b=AiuL8w7fyEKz5pAmzksooy/+VmcB91GxKq8huZ6IelXuqBL MlT7HdxFuhlxDYt1fB+sffYYGRMOd6pd/O1ENLf09E/OhPMK+J9mxRZAP+oMbhu8 horN0IZRRXWGEiLA29sCBoXyTr2XhDfppK3/ZKSn06HAhpAIfzSdCI5OwOhY= 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=KpsM89CWO3nJng saXk/8GJOyVoc=; b=axcHjmtNo1ME5nvnPzpQgPYqt1TFHAZ+ha5KnjmUZ/lGC1 1HZWWVB+fZ3T5GyGXowDoPzfw/ieFYcgoGakMJx4N/9npBPDcQJMOYWefK1foRyO t5HkiiT4+2gID2KH2NwCxXRy+P++uuoVYq1CEeHhHXeIiaw58aPKYoZhYc8Cg= X-ME-Sender: X-Sasl-enc: A1CGposGLBlfRQeurwzZiDDrmJ4+2DPX8g+VpnLXVcwy 1478019809 Date: Tue, 1 Nov 2016 17:03:28 +0000 From: Daniel Shahaf To: zsh-users@zsh.org Subject: Re: Shift-Insert overwrites ZLE CUTBUFFER Message-ID: <20161101170328.GA24091@fujitsu.shahaf.local2> References: <161025091249.ZM7232@torch.brasslantern.com> <161026090133.ZM11120@torch.brasslantern.com> <161026165138.ZM12130@torch.brasslantern.com> <87h97x36sa.fsf@lwm.klanderman.net> <161027133523.ZM15655@torch.brasslantern.com> <43312.1477929414__19178.7032563754$1477929872$gmane$org@hydra.kiddle.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <43312.1477929414__19178.7032563754$1477929872$gmane$org@hydra.kiddle.eu> User-Agent: Mutt/1.5.23 (2014-03-12) 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; feel free to just discard it and commit something else (that'd be easier than doing iterations on list). It uses the term "register" as in your email and in Vim, however, that term occurs only once in zshzle(1). Cheers, Daniel diff --git a/Doc/Zsh/zle.yo b/Doc/Zsh/zle.yo index 64bfcc2..63f673b 100644 --- a/Doc/Zsh/zle.yo +++ b/Doc/Zsh/zle.yo @@ -2175,9 +2175,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. -The pasted text is inserted to the buffer and placed in the cutbuffer. + +When invoked interactively, the pasted text is inserted to the buffer. 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 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