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

_email-lbdbq



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