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

Re: what is removing the space after completion and before "|"?



Derek Peschel wrote:

> ...
> 
> I'm using the old completion system and I haven't tried compctl.  I don't
> think AUTO_REMOVE_SLASH has any effect in the particular case of spaces
> before pipe characters (I tried it both ways).  This is with a 4.1
> development version.

compctl is the old one, the completion system is the new one.

> Is compresult.c the only file that deals with suffixes?

Everthing needed for this, yes.  But we have to rely on the zle module
to really remove the suffix (since at that time, the completion system
isn't running any more).

But.  We had some discussion about suffix handling some time ago
(sorry, don't have the message IDs here).  I've mostly been thinking
(or dreaming) about moving mor of the code into shell code for more
flexibilty and greater configurability.  I didn't have time to hack,
though, and it isn't easy without changing several parts of the C- and
shell-code.

I don't object if you want to hack that part of the code (everyone who
wants to work his way into the completion code is welcome), but I
don't want new shell options to appear for this (or I'll remove them
again when I find the time to tackle the suffix problem).

Maybe you have other ideas about suffix handling and could tell us
about them?  So that we could come up with a list of desired features
to help us implement that.

I'm starting to like hacking zsh again, so I might even start playing
with this as long as I'm stuck on the other two recent open issues
(fake and the -[JV] problem and defaults as in the my-accounts case --
but see the mail I'm writing in a few minutes for this).


Bye
  Sven

-- 
Sven Wischnowsky                          wischnow@xxxxxxxxx



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