From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6942 invoked by alias); 19 Jul 2015 12:13:56 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 35831 Received: (qmail 15148 invoked from network); 19 Jul 2015 12:13:54 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00,FSL_HELO_BARE_IP_2, RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.0 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-workers@zsh.org From: Yuri D'Elia Subject: Re: PATCH: highlight pasted text Date: Sun, 19 Jul 2015 14:13:39 +0200 Message-ID: References: <7277.1437023995@thecus.kiddle.eu> <150716131504.ZM18155@torch.brasslantern.com> <150718110859.ZM4405@torch.brasslantern.com> <19088.1437274234@thecus.kiddle.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 151.34.202.74 X-Enigmail-Draft-Status: N1110 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.0 In-Reply-To: <19088.1437274234@thecus.kiddle.eu> On 19/07/15 04:50, Oliver Kiddle wrote: > How about the following patch? This adds another special token to > zle_highlight. So you can do, e.g: zle_highlight+=( paste:bg=87 ) > This applies also for vi put and emacs yank commands. This is sweet. I can safely say this gives a great indication of the state of the shell, and fixes the behavior of the literal paste in any condition. But chopping off that newline if it's the last character... hmm, I still think that's a good idea. > Text from a bracketed paste is now added to the cutbuffer. As far as > I can tell, this seems to actually also be what the GUI mode of emacs > does. Though emacs is perhaps not putting duplicates in. It'd be good if > some actual emacs users could check that it all makes sense, however. It matches the default behavior of 24.* at least.