zsh-users
 help / color / mirror / code / Atom feed
* GLOB_COMPLETE and numbered directories
@ 2015-03-19  7:32 Daniel Shahaf
  2015-03-19  9:16 ` Mikael Magnusson
  2015-03-19 16:06 ` Bart Schaefer
  0 siblings, 2 replies; 10+ messages in thread
From: Daniel Shahaf @ 2015-03-19  7:32 UTC (permalink / raw)
  To: zsh-users

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-03-20 16:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-19  7:32 GLOB_COMPLETE and numbered directories Daniel Shahaf
2015-03-19  9:16 ` Mikael Magnusson
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

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).