From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24787 invoked by alias); 23 Jul 2015 04:04:06 -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: 35865 Received: (qmail 10222 invoked from network); 23 Jul 2015 04:04:04 -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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1437623872; bh=qzRQvFnkT34+0yg4JSYM/DT3VMTa+/C4zJZmNWlsrrQ=; h=In-reply-to:From:References:To:Subject:Date:From:Subject; b=EaI4dLXMDd4IVZ4Uwz1eTAZrrSFVTVzkSZnkWZiI3OZe0W4O0DdObY8PAzQU0OG73eefsS4MXephQYfp7tNe3tdoaRkhVLOYXG64Gz4yjOEf5eBQj1SldY1xNJhRm7orVJaqth3esD6gtD1NqWPRy20giWfijgchfnd7DAAvdFShn79BI/NkDqHXclgrT0Ihsyn5gOtXYAJPcGVUKv4+1HVALN9KsV6BF029cpFn/9HGPTyY8Meqy6fbisVIWKYId2sR3p/LxhO37EIyQeLg1h8qOWWNt6ik8EH0HkwUPFnRMcyxCEztOO3lYrPYh6w40uoWUe/PBb9WV1HMT1tHiA== X-Yahoo-Newman-Id: 830578.92778.bm@smtp149.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: db7vzIAVM1mEt1j9JNjYgmzEsR56rcClhI4WubA6BcAOdMH oEgdmZcr7NBmWN0UHHFbS3A7VW6CZ3k.elofvsUy4EPlhN52foCIv2fzf52m YHg2FAuJwu4GiqjdJNQ9.mQRTAH2zLvDQd.k1l66xfaJZ8_8.tUwlR75SKC6 _0Z4j22FWTUU_Tscibfy0IG5Oq95AcqAK9roiw0qwHwJu9dAcDs_j4lNvl_q SNGGltXWPIfh.SVwLp.mbN2B3UpHbaOMD4xnqwctqjyUSDQPLr_rSd8Eh0Vr GagsjyWJyQ1G34wJ.4Wkw0ixwLOh66qYqLTbnGIqAReV30T9yuY1MQcMA7_n qLRXys.JUo_n9CdufSjVWz1.uThP7v6YbYiWntbzi7cqTCITmSrItogywL4Z fYrg7AexwZecv80hG8oqH6tqCHMumTMtNQpwfhzfIS1zmEkPZQVE2I0hS_ox 0vJ2MV5n57fcYgqyqjOeIvbERk7fez9qGvudvYYqSKHuT4ZL1kme4bn.jzcH eivk6X2PP1YNW8IbKX3uOXa_N8wWjnQ-- X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- In-reply-to: <150721103553.ZM15127@torch.brasslantern.com> From: Oliver Kiddle References: <7277.1437023995@thecus.kiddle.eu> <150716131504.ZM18155@torch.brasslantern.com> <150718110859.ZM4405@torch.brasslantern.com> <19088.1437274234@thecus.kiddle.eu> <20150719171242.GD1900@tarsus.local2> <150719111044.ZM12632@torch.brasslantern.com> <14713.1437492198@thecus.kiddle.eu> <150721103553.ZM15127@torch.brasslantern.com> To: zsh-workers@zsh.org Subject: Re: PATCH: highlight pasted text MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29057.1437623871.1@thecus.kiddle.eu> Date: Thu, 23 Jul 2015 05:57:51 +0200 Message-ID: <29058.1437623871@thecus.kiddle.eu> Bart wrote: > } Another disadvantage is that PS2 in general is irritating for the > } fact that it restarts zle and push-line-or-edit tricks are needed on > } up-cursor to allow editing the prebuffer. > > I didn't say "restart zle at the PS2 prompt" ... I just said to display > it. It could be handled like RPS2 and immediately removed as soon as > more keystrokes are received, at the time that the highlighting goes. That's not quite so easy. > Yeah, this is a good idea. I think I'll add > > RPS2="<${PS2%> }" Note, however, that where %_ is used in PS2, you might prefer %^ in RPS2. That's the same thing but with the order reversed and I've just realised that it isn't in the documentation; hence the small patch. Oliver diff --git a/Doc/Zsh/prompt.yo b/Doc/Zsh/prompt.yo index 3075876..c4e2014 100644 --- a/Doc/Zsh/prompt.yo +++ b/Doc/Zsh/prompt.yo @@ -92,6 +92,10 @@ print as many as there are. This is most useful in prompts tt(PS2) for continuation lines and tt(PS4) for debugging with the tt(XTRACE) option; in the latter case it will also work non-interactively. ) +item(tt(%^))( +The status of the parser in reverse. This is the same as `tt(%_)' other than +the order of strings. It is often used in tt(RPS2). +) xitem(tt(%d)) item(tt(%/))( Current working directory. If an integer follows the `tt(%)',