zsh-users
 help / color / mirror / code / Atom feed
* tab during menu completion
@ 2003-10-06 23:29 Daniel Muino
  2003-10-07  9:15 ` Oliver Kiddle
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Muino @ 2003-10-06 23:29 UTC (permalink / raw)
  To: zsh-users


I'm using zsh 4.1.1, and I like the menu based completion:

zstyle ':completion:*' menu yes=2 select=2 interactive

But I have a problem when I type the following:

ls /etc/<TAB>

[Menu appears here]

I hit <TAB> again.

My command line is then replaced to:

/etc/^@^@^@

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

Thanks,

Daniel


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: tab during menu completion
  2003-10-06 23:29 tab during menu completion Daniel Muino
@ 2003-10-07  9:15 ` Oliver Kiddle
  2003-10-07 14:38   ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Oliver Kiddle @ 2003-10-07  9:15 UTC (permalink / raw)
  To: Daniel Muino; +Cc: zsh-users

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: tab during menu completion
  2003-10-07  9:15 ` Oliver Kiddle
@ 2003-10-07 14:38   ` Bart Schaefer
  0 siblings, 0 replies; 3+ messages in thread
From: Bart Schaefer @ 2003-10-07 14:38 UTC (permalink / raw)
  To: zsh-users

On Oct 7, 11:15am, Oliver Kiddle wrote:
}
} > 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?

It's in the manual for 4.1.1-dev, last paragraph under the 'menu' style:

     Finally, it is possible to activate two special modes of menu
     selection.  The word `interactive' in the value causes interactive
     mode to be entered immediately when menu selection is started; see
     *Note The zsh/complist Module:: for a description of interactive
     mode.  Including the string `search' does the same for incremental
     search mode.  To select backward incremental search, include the
     string `search-backward'.

And in the zsh/complist section:

vi-insert
     this toggles between normal and interactive mode; in interactive
     mode the keys bound to self-insert and self-insert-unmeta insert
     into the command line as in normal editing mode but without leaving
     menu selection; after each character completion is tried again and
     the list changes to contain only the new matches; the completion
     widgets make the longest unambiguous string be inserted in the
     command line and undo and backward-delete-char go back to the
     previous set of matches

I don't think this mode has ever been very thoroughly tested.  It was one
of the last things Sven put it before he became too busy with work to be
contributing regularly.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-10-07 14:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-06 23:29 tab during menu completion Daniel Muino
2003-10-07  9:15 ` Oliver Kiddle
2003-10-07 14:38   ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).