zsh-users
 help / color / mirror / code / Atom feed
* Completion and menu behavior
@ 2002-08-07  6:10 Byron Foster
  2002-08-07  7:39 ` Sven Wischnowsky
  0 siblings, 1 reply; 13+ messages in thread
From: Byron Foster @ 2002-08-07  6:10 UTC (permalink / raw)
  To: zsh-users

Being an avid ZSH user I've recently spent some time learning the new 
completion system.  Very powerful stuff!  After adding zstyle entries in 
my .zshrc I tried to get the tab (complete-word) behavior to behave in a 
manner as follows:

lets say I'm in a directory that contains only files 'foobar' and 
'foofoo' and I type 'less [TAB]' at the command line.  Currently I will 
get a partial completion of 'foo' and that's it.  Now what I would like 
is that if I were to type 'less [TAB]' at the command line I would be 
given 'less foo' with the cursor following just after the partial 
completion, but *also* with a menu listing foobar and foofoo.  Now I 
have tried all combinations of completion options and styles to try and 
get this behavior, but none do the trick.  The one I believe should do 
the trick is AUTO_LIST since it's documentation indicates that it will 
always display a menu list with an ambiguity.  But I think that the 
problem is that a partial completion is not considered an ambiguity. 
AUTO_LIST does work in the case that if I type 'less foo[TAB]' then the 
menu does appear since no completion at all is taking place.  I don't 
want to use something like MENU_COMPLETE because a like the partial 
completions.

I may sound lazy since in the above case I could type TAB twice, once to 
get a partial completion then again to get the menu.  However, with this 
behavior one cannot tell on the first TAB hit if the completion of 'foo' 
is a partial completion or a full completion.  What I would like is for 
the menu list to act as an indicator of a partial completion in addition 
to displaying the possible matches.

I'm using zsh (4.0.4)
Any help would be appreciated!

Byron






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

end of thread, other threads:[~2002-08-11 19:54 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-07  6:10 Completion and menu behavior Byron Foster
2002-08-07  7:39 ` Sven Wischnowsky
2002-08-07 21:44   ` DervishD
2002-08-07 22:10     ` Bart Schaefer
2002-08-10 17:02       ` DervishD
2002-08-10 17:30       ` DervishD
2002-08-10 19:27         ` Bart Schaefer
2002-08-10 20:20           ` DervishD
2002-08-11  1:17             ` Bart Schaefer
2002-08-11 13:20               ` DervishD
2002-08-11 14:56                 ` Bart Schaefer
2002-08-11 20:01                   ` DervishD
2002-08-08  3:23   ` Byron Foster

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).