* ** matching?
@ 1999-06-07 11:15 Andrej Borsenkow
0 siblings, 0 replies; 2+ messages in thread
From: Andrej Borsenkow @ 1999-06-07 11:15 UTC (permalink / raw)
To: ZSH workers mailing list
I understand, that it may be near to impossible to implement, but ...
bor@itsrm2:/tools/src/zsh-3.1.5-pws-20%> view **/_brace_<TAB>
Beep
bor@itsrm2:/tools/src/zsh-3.1.5-pws-20%> view */*/_brace_<TAB>
bor@itsrm2:/tools/src/zsh-3.1.5-pws-20%> view
Completion/Base/_brace_parameter
I'm quite used to using ** ... so, any chance to use it in completion as
well?
/andrej
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ** matching?
@ 1999-06-07 11:44 Sven Wischnowsky
0 siblings, 0 replies; 2+ messages in thread
From: Sven Wischnowsky @ 1999-06-07 11:44 UTC (permalink / raw)
To: zsh-workers
Andrej Borsenkow wrote:
> I understand, that it may be near to impossible to implement, but ...
>
> bor@itsrm2:/tools/src/zsh-3.1.5-pws-20%> view **/_brace_<TAB>
> Beep
>
> bor@itsrm2:/tools/src/zsh-3.1.5-pws-20%> view */*/_brace_<TAB>
> bor@itsrm2:/tools/src/zsh-3.1.5-pws-20%> view
> Completion/Base/_brace_parameter
>
> I'm quite used to using ** ... so, any chance to use it in completion as
> well?
Well, first: you can always use expansion for things like this. Then:
The problem is that we would suddenly have to deal with paths with
different numbers of components. The easiest way to implement
something like this which I can currently see is to have _path_files
try */, then */*/, and so on, up to a configuarable maximum number of
components. But if you have a/foo and a/b/foo, this would only
complete the first one.
Bye
Sven
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-06-07 11:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-06-07 11:15 ** matching? Andrej Borsenkow
1999-06-07 11:44 Sven Wischnowsky
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).