Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
_email-lbdbq
- X-seq: zsh-workers 25056
- From: Angel Olivera <redondos@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: _email-lbdbq
- Date: Sat, 17 May 2008 14:43:18 +0200
- Mail-followup-to: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Hi. I am tying to write a completion function for The Little Brother's
Database to complete e-mail addresses.
I don't understand why:
a. names (aliases) are not shown, despite the function returning the
items appropriately fomatted: alias:address
b. the list appears. I select one address and then the list appears
again, this time read-only (I cannot choose any of the items).
Thanks in advance.
--
redondos
_email-lbdbq() {
while read address name; do
reply+=(${name%[[:space:]]*\(*\)}:$address)
done < <(lbdbq)
reply=(${reply:#*lbdbq:})
return 300
}
Attachment:
signature.asc
Description: Digital signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author