zsh-users
 help / color / mirror / code / Atom feed
* completions issues
@ 2002-07-10 20:47 GoTaR
  2002-07-12 18:44 ` Borsenkow Andrej
  0 siblings, 1 reply; 8+ messages in thread
From: GoTaR @ 2002-07-10 20:47 UTC (permalink / raw)
  To: zsh-users

Hi!

I've got some problems with creating my own rule for sms sending
program. Here comes the significant part:

_sms_aliases () {
	compadd "$@" $(print ${(f)"$(smsaddr -l | cut -f1)"})
}
[...]
		_arguments -C \
                        '-r[remove existing entry]:SMS alias:_sms_aliases'

smsaddr returns two columns, completion should be done from both, but
treated as one entry, e. g.:

$ smsaddr -l
alias1		608612341
alias2		504147432
blias3		603648734

$ smsaddr -r a[tab]... lias2
alias1          608612341
alias2          504147432

$ smsaddr -r 6[tab]... 08612341
alias1          608612341
blias3          603648734

so one column will be used as comment.

I will be very grateful for help.

-- 
GoTaR <gotar@priv0.onet.pl>
PLD stuff at http://mops.uci.agh.edu.pl/~gotar/


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-07-14 21:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-10 20:47 completions issues GoTaR
2002-07-12 18:44 ` Borsenkow Andrej
2002-07-13 19:37   ` GoTaR
2002-07-13 21:20     ` Bart Schaefer
2002-07-14 10:55       ` GoTaR
2002-07-14 21:09         ` Bart Schaefer
2002-07-14  8:57     ` Borsenkow Andrej
2002-07-14 10:49       ` GoTaR

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).