zsh-users
 help / color / mirror / code / Atom feed
* completion with descriptions
@ 2006-03-27 13:27 Andy Spiegl
  2006-03-27 13:46 ` Peter Stephenson
  0 siblings, 1 reply; 4+ messages in thread
From: Andy Spiegl @ 2006-03-27 13:27 UTC (permalink / raw)
  To: zsh-users

How can I provide a description for every offered completion
like e.g. "kill" does it nicely?

# kill t<TAB>
process ID
28745 ?        00:02:11 tudu
28760 ?        00:00:00 tail
28879 pts/7    00:02:08 topcpu
28881 pts/8    00:00:08 tmp-cron-script


In my completion function I tried like this:
   ':cmds: compadd ${${(f)"$(gigaset --commands)"}%%[[:space:]]##--*}' \
but it only gives me this:

# condor:~>gigaset d<TAB>
del       demux     details   dir       divx      divxfast  dump

although "gigaset --commands" outputs:
...
dir         -- Liste der Aufnahmen
dump        -- Details anzeigen
details     -- (s. dump)
divx        -- Aufnahme ins DivX-Format konvertieren
divxfast    -- Aufnahme (schneller) ins DivX-Format konvertieren
demux       -- Aufnahme mit projectX demultiplexen
del         -- (s. rm)
...

For the last hours I read the manual and examples (like _pids) but
eventually got lost before finding the solution  :-(

Thanks,
 Andy.

-- 
 Finagle's First Law:
   If an experiment works, something has gone wrong.


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

end of thread, other threads:[~2006-03-28 16:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-27 13:27 completion with descriptions Andy Spiegl
2006-03-27 13:46 ` Peter Stephenson
2006-03-27 16:30   ` Andy Spiegl
2006-03-28 16:35     ` Andy Spiegl

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