Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion
- X-seq: zsh-users 9950
- From: Clint Adams <clint@xxxxxxx>
- To: Etienne Chové <chove@xxxxxxxxx>
- Subject: Re: Completion
- Date: Mon, 20 Feb 2006 13:51:32 -0500
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <43F9BBF7.2070009@xxxxxxxxx>
- Mail-followup-to: Etienne Chové <chove@xxxxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <43F9BBF7.2070009@xxxxxxxxx>
> But it won't complete prenom because it match with the first condition. Is
> th'ere a easy colution to have completion ?
Is this closer to what you want?
#compdef whos
_recherche () {
if compset -P '*prenom='; then
compadd - prenom1 prenom2
elif compset -P '(|*&)'; then
compadd -S '=' - nom prenom
elif compset -P '*A'; then
compadd - nom1 nom2
fi
}
_arguments \
'*:expression:_recherche'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author