From: Byron Foster <byron@base2.cc>
To: zsh-users@sunsite.dk
Subject: Completion and menu behavior
Date: Tue, 06 Aug 2002 23:10:30 -0700 [thread overview]
Message-ID: <3D50B9D6.6050603@base2.cc> (raw)
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
next reply other threads:[~2002-08-07 6:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-07 6:10 Byron Foster [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D50B9D6.6050603@base2.cc \
--to=byron@base2.cc \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).