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

Re: Lack of any functionality in new completion



Josh Howard wrote:
> I suppose I must have some sort of gross oversight when it comes to
> the new completion, but...It seems that I'm completely and utterly
> unable to get any semblance of completion going in 3.1.5-pws-13. Mind
> you, I hadn't ever gotten it working, but I figured I might as well 
> start at the newest. I set an fpath, used compinit -d, tried a few zle
> tricks to get ^I to complete here and there, but it would seem that
> when I execute compinit -d, things tend to stop working.

Remember you need `. compinit -d' or `source compinit -d' to get things to
work --- executing it as a shell script won't do anything.  The bindings
should then be set automatically, provided they were previously bound to
the usual old-style completion functions; you shouldn't need to do any
rebinding yourself.  Try doing `set -x' and seeing what functions get
called when you hit tab; you should start off inside the function
_main_complete.  If nothing at all shows up, then the functions probably
aren't being found, either a problem with $fpath or it hasn't been
autoloaded (or both, if compinit didn't find anything).  Also try
`functions' and see if you get a long list of undefined functions beginning
with `_', as you should.

Somebody will probably write some installation code when they get a chance.

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy



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