Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: make zsh completion ergonomics closer to those of bash?
- X-seq: zsh-users 14790
- From: "Benjamin R. Haskell" <zsh@xxxxxxxxxx>
- To: Ian Clarke <ian@xxxxxxxxxxxxxx>
- Subject: Re: make zsh completion ergonomics closer to those of bash?
- Date: Wed, 3 Feb 2010 17:46:06 -0500 (EST)
- Cc: zsh-users@xxxxxxx
- In-reply-to: <823242bd1002031419g5ddfa7a0k3851d99970ab854c@xxxxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <823242bd1002031303s325579e3x8333945d7b891e45@xxxxxxxxxxxxxx> <843c889d1002031327k3332da79v9e0edc2520fa71dc@xxxxxxxxxxxxxx> <823242bd1002031333i447cc89eye46c3f7eb2953647@xxxxxxxxxxxxxx> <alpine.LNX.2.01.1002031640090.2729@xxxxxxxxxxx> <823242bd1002031419g5ddfa7a0k3851d99970ab854c@xxxxxxxxxxxxxx>
On Wed, 3 Feb 2010, Ian Clarke wrote:
> Thanks Ben, unfortunately no luck :-( -
>
> On Wed, Feb 3, 2010 at 3:56 PM, Benjamin R. Haskell <zsh@xxxxxxxxxx> wrote:
> > nomenucomplete (synonym for unsetopt menucomplete) is the default.
> >
> > Using zsh-4.3.10, the only completion-related option I have is:
> >
> > $ setopt | grep -E 'comp|menu'
> > noautomenu
>
> I see the same:
> $ setopt | grep -E 'comp|menu'
> noautomenu
>
> I've added these lines to the bottom of my .zshrc:
>
> setopt listambiguous
> setopt noautomenu
> setopt noautolist
> setopt nomenucomplete
>
> Unfortunately it has had no noticeable effect on the auto-completion
> behavior :-(
>
> Incidentally, I'm using the default zsh on OSX 10.6 - zsh 4.3.9
> (i386-apple-darwin10.0)
>
Did you try 'setopt bashautolist'?
Otherwise, let's be sure the defaults are the same...
$ set -o | grep -E 'menu|autolist|listam'
noautolist off
noautomenu on
bashautolist off
nolistambiguous off
menucomplete off
...and be sure we're talking about the same behavior.
Using zsh, create a test directory:
$ mkdir ~/zshcomptest
$ touch ~/zshcomptest/{afile,bfile,commonprefix{aaa{a,b},ccc}}
$ cd ~/zshcomptest
$ cat <TAB>* (cursor stays in same place)
afile commonprefixaaaa commonprefixccc
bfile commonprefixaaab
$ cat a<TAB> (completes to:)
$ cat afile
$ cat c<TAB>* (completes partial, w/ no list, to:)
$ cat commonprefix
$ cat commonprefix<TAB>* (tab again, gets the list:)
commonprefixaaaa commonprefixaaab commonprefixccc
The only difference I see is in how many times I have to hit '<TAB>'
before getting a list in bash (an extra <TAB> is required at the '*'s).
With 'setopt bashautolist', I get the same exact behavior.
--
Best,
Ben
Messages sorted by:
Reverse Date,
Date,
Thread,
Author