zsh-workers
 help / color / mirror / code / Atom feed
From: Angel Olivera <redondos@twat.com.ar>
To: zsh-workers@sunsite.dk
Subject: _email-lbdbq
Date: Sat, 17 May 2008 14:43:18 +0200	[thread overview]
Message-ID: <20080517124317.GA5157@thruster.twat.com.ar> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 431 bytes --]

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

[-- Attachment #1.2: _email-lbdbq --]
[-- Type: text/plain, Size: 153 bytes --]

_email-lbdbq() {
	while read address name; do
		reply+=(${name%[[:space:]]*\(*\)}:$address)
	done < <(lbdbq)

	reply=(${reply:#*lbdbq:})

	return 300
}


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 481 bytes --]

                 reply	other threads:[~2008-05-17 12:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080517124317.GA5157@thruster.twat.com.ar \
    --to=redondos@twat.com.ar \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).