From: Mikael Magnusson <mikachu@gmail.com>
To: Daniel Shahaf <d.s@daniel.shahaf.name>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: GLOB_COMPLETE and numbered directories
Date: Thu, 19 Mar 2015 10:16:02 +0100 [thread overview]
Message-ID: <CAHYJk3SVt7=5LeGicm+RQvScBvCKVrZoC8yGSzTiXgq0mqbPbg@mail.gmail.com> (raw)
In-Reply-To: <20150319073238.GN3548@tarsus.local2>
On Thu, Mar 19, 2015 at 8:32 AM, Daniel Shahaf <d.s@daniel.shahaf.name> 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
next prev parent reply other threads:[~2015-03-19 9:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-19 7:32 Daniel Shahaf
2015-03-19 9:16 ` Mikael Magnusson [this message]
2015-03-19 23:15 ` Daniel Shahaf
2015-03-19 16:06 ` Bart Schaefer
2015-03-19 23:18 ` Daniel Shahaf
2015-03-20 1:21 ` Bart Schaefer
2015-03-20 4:16 ` Daniel Shahaf
2015-03-20 1:02 ` Bart Schaefer
2015-03-20 4:25 ` Daniel Shahaf
2015-03-20 16:41 ` Bart Schaefer
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='CAHYJk3SVt7=5LeGicm+RQvScBvCKVrZoC8yGSzTiXgq0mqbPbg@mail.gmail.com' \
--to=mikachu@gmail.com \
--cc=d.s@daniel.shahaf.name \
--cc=zsh-users@zsh.org \
/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).