From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19783 invoked from network); 29 Mar 2001 08:00:17 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 29 Mar 2001 08:00:17 -0000 Received: (qmail 29240 invoked by alias); 29 Mar 2001 08:00:09 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13827 Received: (qmail 29227 invoked from network); 29 Mar 2001 08:00:08 -0000 From: "Bart Schaefer" Message-Id: <1010329075937.ZM17818@candle.brasslantern.com> Date: Thu, 29 Mar 2001 07:59:36 +0000 X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk Subject: Two missing completion functions that bug me MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I won't commit these yet (hence they're not presented in diff form); either Sven can add them at the Great Renaming, or I'll add them after it happens. The only reason for using _arguments in fned is to get "no more arguments" behavior after the first name is completed; otherwise it could simply call _functions directly. ---- 8< ---- _zed ---- 8< --- #compdef zed fned case $service in (fned) _arguments ':shell function:_functions';; (zed) _arguments '(-):file:_files' \ '(:)-f[edit function]:shell function:_functions';; esac ---- 8< ---- _zed ---- 8< --- When adding this next one, remember to remove vared from _vars. ---- 8< ---- _vared ---- 8< --- #compdef vared _arguments -s -A '-*' ':parameter spec:_vars' \ '(-A)-a[edit array parameter]:parameter name:_parameters -g array\*' \ '(-a)-A[edit associative array]:parameter name:_parameters -g assoc\*' \ '-c+[create parameter or change type]' \ '-h+[enable history]' \ '-e+[exit on EOF (^D)]' \ '-p[specify left prompt]:prompt string:' \ '-r[specify right prompt]:prompt string:' ---- 8< ---- _vared ---- 8< --- -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net