Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Space after completion disappears



Greg Klanderman wrote:
> 
> >>>>> Peter Stephenson <pws@xxxxxxx> 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@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



Messages sorted by: Reverse Date, Date, Thread, Author