From 5851a32681f5fbdbc55987cb117f891e3745f13c Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Thu, 10 Aug 2000 21:22:25 +0000 Subject: add -g option to _parameters to restrict type of parameters completed (12583) --- Doc/Zsh/compsys.yo | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Doc/Zsh/compsys.yo') diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo index 9a0c1a57d..6f378a3de 100644 --- a/Doc/Zsh/compsys.yo +++ b/Doc/Zsh/compsys.yo @@ -3470,8 +3470,12 @@ completion functions are called even if there are no matches so far. ) findex(_parameters) item(tt(_parameters))( -This should be used to complete parameter names. All arguments are -passed unchanged to the tt(compadd) builtin. +This should be used to complete parameter names. tt(_parameters) can +take a tt(-g var(pattern)) option which specifies that only parameters +whose type matches the var(pattern) should be completed. Strings of +the same form as those returned by the tt(t) parameter expansion flag +are used here when matching the type. All other arguments are passed +unchanged to the tt(compadd) builtin. ) findex(_path_files) item(tt(_path_files))( -- cgit 1.4.1