zsh-workers
 help / color / mirror / code / Atom feed
* relative filename completion
@ 1997-06-22  8:59 Stefan `Sec` Zehl
  1997-06-22 19:27 ` Zoltan Hidvegi
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan `Sec` Zehl @ 1997-06-22  8:59 UTC (permalink / raw)
  To: zsh-workers

Hi,

I'm trying to get 'relative filename completion' to work - i.e. a
filename completion which doesnt work relative to '.', but relative to
some other Directory. ("compctl -g '~/Mail/*(:t)' mutt" is not able to
complete in subdirs). So far i tried various things, and the closest i
could come up with was:
compctl -g '~/Mail/**/*(:s_/home/sec/Mail/__)' mutt
but that still doesnt do "the right thing"[tm] (it shows all files in
subdirectorys also if you list the choices) - so i wonder if i missed
some point in the manual - and if not, i'd make this a "Feature request"
as i need this feature quite often.

CU,
    Sec

P.S.: i'm using zsh-3.0.1
-- 
         warum heissen eigentlich alle frauen mit nachnamen jpg


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

* Re: relative filename completion
  1997-06-22  8:59 relative filename completion Stefan `Sec` Zehl
@ 1997-06-22 19:27 ` Zoltan Hidvegi
  0 siblings, 0 replies; 2+ messages in thread
From: Zoltan Hidvegi @ 1997-06-22 19:27 UTC (permalink / raw)
  To: Stefan `Sec` Zehl; +Cc: zsh-workers

> I'm trying to get 'relative filename completion' to work - i.e. a
> filename completion which doesnt work relative to '.', but relative to
> some other Directory. ("compctl -g '~/Mail/*(:t)' mutt" is not able to
> complete in subdirs). So far i tried various things, and the closest i
> could come up with was:
> compctl -g '~/Mail/**/*(:s_/home/sec/Mail/__)' mutt

Look at the Functions/cdmatch function in the distributiton.  Using this
example you can construct a function which can be used together with
compctl -K to achieve what you want.  Further discussion of this should
probably go to the zsh-users list.

Zoltan


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

end of thread, other threads:[~1997-06-22 20:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-06-22  8:59 relative filename completion Stefan `Sec` Zehl
1997-06-22 19:27 ` Zoltan Hidvegi

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