Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: GLOB_COMPLETE and numbered directories
- X-seq: zsh-users 20025
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Subject: Re: GLOB_COMPLETE and numbered directories
- Date: Thu, 19 Mar 2015 10:16:02 +0100
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=7DuZUxy9zSLte+gO+qbIyoAi5lW+c0d3bTswj4GOzXs=; b=x56G3i4zTLD0Y/92owz+hk1rj1c/TxSw1jXuVQk1AAzHnv0fLJWEd4GnbSfReSSvU7 76zAEYmT9kc2x661QMMBH2zv78/BR9JcaGpkFQUaPlW4q7liCVB0ooAQbGhq2ggL11cp 24UXILSD6eN253Xd4Fg6/Bb9+Y5H2EFnn2YaNIAx6Rnm3E23zgNxt3TXDW9MVr+iVacL ajaRcR9/g/D5wV8ttoLvh+xh1mA64Rj6t/wrwBGXsX9mvIG2cb0lqls98b4Y60n1ysn5 K5twVqftBupsx/iDa15wQ0Dkm+Wfbi5EbkYGxuBbTbgTV9ofXj6MXqZPfoHzJfoOwWdC C28A==
- In-reply-to: <20150319073238.GN3548@tarsus.local2>
- 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: <20150319073238.GN3548@tarsus.local2>
On Thu, Mar 19, 2015 at 8:32 AM, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> Consider the following:
>
> % zsh -f
> % autoload compinit && compinit
> % setopt globcomplete
> % find
> .
> % mkdir -p {bar,baz}/iota
> % cat b/i<TAB>
> [cycles between 'cat ba<CURSOR>/iota', 'cat bar/iota/', 'cat baz/iota/']
>
> The above works as expected. However, if the directory names are
> different, completion behaves differently:
>
> % rm -rf bar baz
> % mkdir -p {10a,11a}/iota
> % cat 1/i<CURSOR>
> [press <TAB>]
> % cat 1<CURSOR>a/iota
> [press <TAB>]
> % cat 1a/iota<CURSOR>
> [stays the same upon pressing TAB]
>
> I expected the second <TAB> press to offer me the possible completions
> '10a' '11a'. I'd at least like not to be left with "1a/iota<CURSOR>"
> since "1a" is not a possible completion or an existent directory, and
> with the cursor far from the "1a" fixing the erroneous path requires too
> much effort ;).
Are you sure the difference isn't because your differing character is
now not the last character of the directory name?
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author