Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: relative filename completion
- X-seq: zsh-workers 3282
- From: Zoltan Hidvegi <hzoli@xxxxxxxxxxxxxxxxxxx>
- To: sec@xxxxxx (Stefan `Sec` Zehl)
- Subject: Re: relative filename completion
- Date: Sun, 22 Jun 1997 15:27:25 -0400 (EDT)
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <19970622105936.48798@xxxxxxxxxxxxx> from Stefan `Sec` Zehl at "Jun 22, 97 10:59:36 am"
> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author