zsh-users
 help / color / mirror / code / Atom feed
* Completions from file with zcompsys
@ 2017-06-20  7:46 Dominik Vogt
  2017-06-20 17:27 ` Bart Schaefer
  0 siblings, 1 reply; 6+ messages in thread
From: Dominik Vogt @ 2017-06-20  7:46 UTC (permalink / raw)
  To: zsh-users

Back in the time of compctl there were a lot of hand written
completions in my config, but compsys this has all gone away for
the default completions on the system.  Now I need something
special for a hand written command, and the amount of
documentation in the zshcompsys and zshcompwid manpages is
overwhelming.  Are there some quick instructions instructions or a
cheat sheet on the new completion system somewhere?

The task at hand is:  Some command, say "foo", takes lines from a
certain, pre-written, sorted file as possible completions.  (The
lines are actually latin plant names which should not matter.),
e.g.:

-- snip --
...
Chenopodium acuminatum
Chenopodium album
Daucus carota
...
-- snip --

And I want to type things like

  $ foo Cheno<TAB>alb<TAB>   # -> Chenopodium album
  $ foo Che*a<TAB>           # -> Chenopodium a

(using menu completion, not expanding the * to all matching
completions).  This is probably only one or two lines in the
config.

Ciao

Dominik ^_^  ^_^

-- 

Dominik Vogt


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

end of thread, other threads:[~2017-06-20 23:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-20  7:46 Completions from file with zcompsys Dominik Vogt
2017-06-20 17:27 ` Bart Schaefer
2017-06-20 18:02   ` Dominik Vogt
2017-06-20 19:32     ` Bart Schaefer
2017-06-20 21:42       ` Dominik Vogt
2017-06-20 23:31         ` 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).