zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@csr.com>
To: zsh-workers@sunsite.dk
Subject: Re: Space after completion disappears
Date: Thu, 23 Apr 2009 10:31:50 +0100	[thread overview]
Message-ID: <200904230931.n3N9Vojk013045@news01.csr.com> (raw)
In-Reply-To: <m3ocuobor5.fsf@klanderman.net>

Greg Klanderman wrote:
> 
> >>>>> Peter Stephenson <pws@csr.com> writes:
> 
> > It's entirely cosmetic, but if you really feel the need to change it it's
> > easy to make it configurable.
> 
> Hmm, your change does what he wants if the suffix is a space, but for
> example if the suffix is a '/' I'm not sure.  I suspect he really
> just wants the suffix to always be removed, but have a space inserted
> first if the character about to be inserted is non-whitespace.

I see what you mean---if you end up with "Modules/" and type "&", then
(with & removed from the remove-suffix list) you get "Modules/&" instead
of "Modules&" but you really want "Modules &".  However, that's a new
feature.  I think it would be doable (and probably not difficult) by
adding an additional variable (which would take precedence so you didn't
have to remove the character from the old mechanism) and a new SUFTYP
and changing makesuffix() and iremovesuffix(), but it's beyond the
capability of simple local tweaks.

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


  reply	other threads:[~2009-04-23  9:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-21  5:11 Michael Hwang
2009-04-21  7:03 ` Bart Schaefer
2009-04-22 15:28   ` Michael Hwang
2009-04-22 16:04     ` Peter Stephenson
2009-04-22 17:07       ` Greg Klanderman
2009-04-23  9:31         ` Peter Stephenson [this message]
2009-04-23 10:43           ` 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=200904230931.n3N9Vojk013045@news01.csr.com \
    --to=pws@csr.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).