zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Derek Peschel <dpeschel@eskimo.com>
Cc: zsh-workers@sunsite.dk
Subject: Re: PATCH: 4.0.2: rprompt2 variable
Date: Tue, 29 Jan 2002 18:21:32 +0000	[thread overview]
Message-ID: <3C56E82C.64A1D159@yahoo.co.uk> (raw)
In-Reply-To: <20020125044808.C7661@eskimo.eskimo.com>

Derek Peschel wrote:
> 
> Even if a feature (right-hand prompts) is frivolous, it might as well be
> available in general.
> 
> Now you can see the parser state (or whatever else you might want to put
> in PROMPT2) and still have a consistent left margin when entering a multi-
> line command.  See my companion "reverse parser state" patch if you want
> the parser state to expand leftward on your screen.
> 
> Comments welcome (I just started using zsh and I have no idea if anyone
> else will find these patches useful).

I'd just like to say that I like this. I've never actually used
rprompts but this with the transient_rprompt option (new since 4.0.2)
is useful. For one thing, it makes life easier if I decide to cut 'n'
paste the lines into an editor or other terminal because I don't then
have a prompt to get rid of. I fear that other people may want a
separate transient_rprompt2 option with this.

> %_ no longer treats negative integers like zero, but instead extracts
> leading (outermost) words.  Maybe someone somewhere cares more about
> the outer state than the inner state.
> 
> %^ works like %_ (including the behavior described above) but after
> the words are selected they are printed in reverse order.  Try using %^
> in RPS2.
> 
> I picked ^ because it comes before _ in ASCII.

I'm not sure whether the negative integers part might ever be useful
though I have no objections because it is logical. I'd be tempted to
use negative numbers for reversing the order but -0 not being a
distinct number from +0 makes that less clean as a solution.

Note that these patches do apply to the latest code from cvs. Has
anyone else tried them?

Oliver

________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________


  reply	other threads:[~2002-01-29 18:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-25 12:48 Derek Peschel
2002-01-29 18:21 ` Oliver Kiddle [this message]
2002-01-31  5:01   ` Derek Peschel
2002-01-31 14:12     ` Oliver Kiddle
2002-01-31 12:06   ` Peter Stephenson

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=3C56E82C.64A1D159@yahoo.co.uk \
    --to=okiddle@yahoo.co.uk \
    --cc=dpeschel@eskimo.com \
    --cc=zsh-workers@sunsite.dk \
    /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).