* completion for {foo,ba/baz
@ 2015-11-01 21:03 Dave Yost
2015-11-01 23:36 ` Bart Schaefer
0 siblings, 1 reply; 2+ messages in thread
From: Dave Yost @ 2015-11-01 21:03 UTC (permalink / raw)
To: zsh workers
It seems to me that zsh completion should work on an argument that has a { without a closing }.
So, tab on
{foo,ba/baz
should produce
{foo,bar}/baz
and if the only two things in the directory are foo and bar, then tab on
{foo,/baz
or
{foo,}/baz
should produce
{foo,bar}/baz
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: completion for {foo,ba/baz
2015-11-01 21:03 completion for {foo,ba/baz Dave Yost
@ 2015-11-01 23:36 ` Bart Schaefer
0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2015-11-01 23:36 UTC (permalink / raw)
To: Dave Yost, zsh workers
On Nov 1, 1:03pm, Dave Yost wrote:
}
} It seems to me that zsh completion should work on an argument that has
} a { without a closing }.
Well, it tries, but what it tries is to complete things that could be
added to the list inside the braces; it does not attempt to figure out
where you meant the closing brace to be, because:
} So, tab on
} {foo,ba/baz
} should produce
} {foo,bar}/baz
Why? Brace expansions don't care about slashes the way ordinary globs
do. This could just as easily be {foo,ba/baz,etc}.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-11-01 23:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-01 21:03 completion for {foo,ba/baz Dave Yost
2015-11-01 23:36 ` 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).