zsh-users
 help / color / mirror / code / Atom feed
* completion function with compadd
@ 2005-01-20 18:20 Eric Smith
  2005-01-22 22:22 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Smith @ 2005-01-20 18:20 UTC (permalink / raw)
  To: zsh-users

Hi zsh-list

I use #compdef and compadd in a site_function to do completion
based on words in a file.  But actually the completion is on
the #lines# in the file you give as an argument to compadd.

Is it possible to complete on words within that file.
The example I am looking for is my mutt aliases
file where I want to go:

mutt a<tab>

and get 
mutt alice@inwonderland.com

and not
mutt alias aw "Alice in Wonderland" <alice@inwonderland.com>

thanks guys

-- 
Eric Smith


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

end of thread, other threads:[~2005-01-22 22:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-20 18:20 completion function with compadd Eric Smith
2005-01-22 22:22 ` Bart Schaefer

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