Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: relative filename completion



> 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