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

Re: tab during menu completion



Daniel Muino wrote:
> 
> I'm using zsh 4.1.1, and I like the menu based completion:
> 
> zstyle ':completion:*' menu yes=2 select=2 interactive

What does that `interactive' word in the style do? I can't find it in
the manual but if you remove it, the bug goes away. Any idea where you
got that from?

> But I have a problem when I type the following:
> 
> ls /etc/<TAB>
> 
> [Menu appears here]

It also has a message at the top which looks like:
  interactive: /etc/[]

> I hit <TAB> again.
> 
> My command line is then replaced to:
> 
> /etc/^@^@^@

Yup, that's what I get.

> Is it possible to bind <TAB> to forward-char during the menu selection?

At a basic level that would be:
  bindkey -M menuselect '^I' forward-char
but you shouldn't need to do that. That also seems to go across before
down.

Oliver



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