From ca670d4d27953588909d4b682eae5d7757bcf512 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Thu, 18 May 2000 10:48:31 +0000 Subject: allow _main_complete to call an arbitrary command given as arguments (11459) --- Doc/Zsh/compsys.yo | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Doc/Zsh/compsys.yo') diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo index 1638e5406..ddd815c4a 100644 --- a/Doc/Zsh/compsys.yo +++ b/Doc/Zsh/compsys.yo @@ -2003,6 +2003,12 @@ functions to decide if other completers should be called. If the return value is zero, no other completers are tried and the tt(_main_complete) function returns. +If the first argument to tt(_main_complete) is a single hyphen, the +arguments will not be taken as names of completers. Instead, the +second argument gives a name to use in the var(completer) field of the +context and the other arguments give a command anme and arguments to +call to generate the matches. + The following completer functions are contained in the distribution (users may write their own): -- cgit 1.4.1