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

Re: zsh/complist and compinit



Alexandre Duret-Lutz wrote:

> A small question about menu completion:
> 
> This will work:
> 
> phobos% zmodload zsh/complist
> phobos% autoload -U compinit 
> phobos% compinit
> phobos% bindkey m menu-select 
> phobos% echo /<M-m>
> 
> while this won't:
> 
> phobos% autoload -U compinit 
> phobos% compinit
> phobos% zmodload zsh/complist
> phobos% bindkey m menu-select 
> phobos% echo /<M-m>
> 
> Does the order of compinit and complist really matters?

Yes. compinit can override the definition for the menu-select widget
only if the complist module is already loaded. We can't do that in
advance.

Of course you can add the `zle -C menu-select .menu-select _main_complete'
by hand, but maybe we should document that somewhere.


Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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