Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: #compdef tag and menu-select
- X-seq: zsh-workers 11690
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>, zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: #compdef tag and menu-select
- Date: Wed, 31 May 2000 14:08:56 +0000
- In-reply-to: <200005310651.IAA22451@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <200005310651.IAA22451@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
On May 31, 8:51am, Sven Wischnowsky wrote:
} Subject: Re: #compdef tag and menu-select
}
} > What can I put *in the definition file* for this widget that will enable
} > menu selection "by other means"? I tried everything I could think of
}
} foo() {
} compadd ...
} MENUSELECT=0
} compstate[insert]=menu
} }
} zle -C foo complete-word foo
} bindkey '...' foo
}
} Works for me.
It doesn't work for me. I get a listing and the first match inserted.
Ah, but I don't have the complist module loaded from .zshrc ... that's
the missing tidbit. So (prior to the patch for autoloading menu-select)
I'd also have to put a zmodload in the definition file.
I therefore think it's worth keeping menu-select around as a widget even
if just as an autoloading hook.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author