Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: highlight pasted text
- X-seq: zsh-workers 35832
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Yuri D'Elia <wavexx@xxxxxxxxxx>
- Subject: Re: PATCH: highlight pasted text
- Date: Sun, 19 Jul 2015 17:12:42 +0000
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=9f0K9NMf4guGQ3haHz5T5r6p7I4=; b=20hLDi 0ESRgliTW/yGlMzSsyVgbfSYyTN7zVN/tjrefXCfDQICru0gJfkubXSlExmgpa56 Qcxe4L3Ghg97Wq52hmGxL4VOOnw9di+eI1ZjH762JKgp0WqNaiVCW/axLH5SKfAA 28XtZdnTao15srh55NcCOdiGVpbR7muZKgOsM=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=9f0K9NMf4guGQ3haHz5T5r6p7I4=; b=SUVxN SP14pKEMVF4kRnRYOJcivYT/ApzAxTBHHpvHLA6lgxcBy733pbDNh3dMaa3u4OSj sG81pPOXc/mSwTCpzfDXgfavDk4c5rIWaUf5NyqElzNPdr+lv7p3jWthFkMmBtpr rVOcON3yRE3SgvtwN1zp0XE2zj95l/LSytCCnU=
- In-reply-to: <mog49m$8en$1@ger.gmane.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <mo6325$r5k$1@ger.gmane.org> <7277.1437023995@thecus.kiddle.eu> <150716131504.ZM18155@torch.brasslantern.com> <modfdp$crn$1@ger.gmane.org> <150718110859.ZM4405@torch.brasslantern.com> <19088.1437274234@thecus.kiddle.eu> <mog49m$8en$1@ger.gmane.org>
Yuri D'Elia wrote on Sun, Jul 19, 2015 at 14:13:39 +0200:
> 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.
I'd rather text be pasted verbatim (for a number of reasons, I can
elaborate if needed). How about doing
zle -M "Press <Enter> to execute"
if the pasted text ends with a newline?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author