Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
GLOB_COMPLETE and numbered directories
- X-seq: zsh-users 20023
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: GLOB_COMPLETE and numbered directories
- Date: Thu, 19 Mar 2015 07:32:38 +0000
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=x-sasl-enc:date:from:to:subject:message-id :mime-version:content-type; s=mesmtp; bh=cqn1ZxEs+Ev96Uo7XrIb9xz WIrc=; b=W3qMqcHMcPKSpTGuWAbCArUxJoCx3TEsbJNmGF33eJ4dUihFqFxrMlH bJFhtPyfF/WvR5Z3OqK+Ls773+7EJeAqnDgHic80lliKcK+RH1m2n5r1ek0PwiNU yH7s4pUdEm0edJ3P0Q1HqqcGUyN5tbdUO/WzPmueELxwsKLI7XV0=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:date:from:to:subject :message-id:mime-version:content-type; s=smtpout; bh=cqn1ZxEs+Ev 96Uo7XrIb9xzWIrc=; b=QJjCo5bqr0/VMekTS+RyiHSdcnPSNrO88XEGW66ZUne 4WvUVREBf//pqpYurJVaDy4bGzASQdqajaQykkKiHbU0eiDPUKB+FeFb2Eh3T0fv rk6uMFAjKuG23h0fym7QgZRYbPmmtwiUvgE7OUQNi0BLTG+XjJeDDIR4dibrmPkM =
- 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
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 ;).
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author