zsh-users
 help / color / mirror / code / Atom feed
* How to change description for _user_expand completions?
@ 2012-08-26 18:28 Pax Unix
  2012-08-28 12:57 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Pax Unix @ 2012-08-26 18:28 UTC (permalink / raw)
  To: zsh-users

Many times the completion function I write works, but I've always got
the uneasy feeling that it works because of a certain amount of
coincidence instead of intent.

I feel like I only know just enough completion-system magic to be
dangerous, so I'd appreciate any guidance.  It would be handy if there
were a zsh completion/expansion system cookbook.  zshcompsys(1) and
zshcompwid(1) explain what's available, but I've found it difficult to
figure out the "correct" way to accomplish something and support all of
the other features (like configurable styles, etc.) for my functions.

My current problem:  I've got a function called by _user_expand so I can
generate context-independent completions based on a particular prefix.

It works perfectly well, but the only description that ever appears is
either "all expansions" or "expansions" (or "original").  I want to
specify the description string from within my expander function,
tailored to the results I'm returning, rather than have to accept the
default.

I thought I could call _describe, but I can't seem to find the correct
parameters to make it work.

Is this possible?  Or since there could be any number of expansion
functions called, do the results have to all be lumped into the same
group because there's no tag information specific to each expander?

-- 
Shawn


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

end of thread, other threads:[~2012-08-28 13:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-26 18:28 How to change description for _user_expand completions? Pax Unix
2012-08-28 12:57 ` Peter Stephenson

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