Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Filename expansion within a completion widget
- X-seq: zsh-users 8150
- From: DervishD <zsh@xxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxxxxx>
- Subject: Re: Filename expansion within a completion widget
- Date: Wed, 3 Nov 2004 00:44:09 +0100
- In-reply-to: <20041102233658.GA21654@DervishD>
- Mail-followup-to: Zsh Users <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: DervishD
- References: <20041102233658.GA21654@DervishD>
Hi all :)
> compstate[insert]=${compstate[insert]//tab /}
>
> compset -P '*/'
>
> Well, it handles both relative and absolute directories
> correctly, but doesn't handle named directories :(( I don't
> understand why because if I type 'cd ~X<TAB>' the named dir should be
> expanded, shouldn't it?
>
> If it shouldn't, could anyone hint me how to do it? Should I
> bother with any other similar problems (I mean, like mangling IPREFIX
> for absolute directories and the like)?
Of course, adding something like 'PREFIX=$~PREFIX' just before
the compset call solves the problem, but then the named dir is
'translated', which I don't want, and additional code is needed in
the compadd call to 'untranslate' it. There is surely another way of
doing this...
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736
http://www.dervishd.net & http://www.pleyades.net/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author