From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4765 invoked from network); 25 Apr 2003 13:57:54 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 25 Apr 2003 13:57:54 -0000 Received: (qmail 12774 invoked by alias); 25 Apr 2003 13:57:47 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 18473 Received: (qmail 12766 invoked from network); 25 Apr 2003 13:57:47 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 25 Apr 2003 13:57:47 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [213.46.243.20] by sunsite.dk (MessageWall 1.0.8) with SMTP; 25 Apr 2003 13:57:47 -0000 Received: from s.hn.org ([80.111.3.215]) by amsfep11-int.chello.nl (InterMail vM.5.01.05.17 201-253-122-126-117-20021021) with SMTP id <20030425135746.PMXY29019.amsfep11-int.chello.nl@s.hn.org> for ; Fri, 25 Apr 2003 15:57:46 +0200 Received: (qmail 15816 invoked by uid 1000); 25 Apr 2003 13:57:45 -0000 From: "Haakon Riiser" Date: Fri, 25 Apr 2003 15:57:45 +0200 To: zsh-workers@sunsite.dk Subject: Acrobat Reader completion plugin Message-ID: <20030425135745.GA1486@s.chello.no> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="envbJBWh7q8WU6mo" Content-Disposition: inline User-Agent: Mutt/1.4.1i --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I've written a completion plugin for Acrobat Reader 5.0.x. Feel free to include it with zsh if you like it. :-) -- Haakon --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=_acroread #compdef acroread # $Date: 2003/04/22 10:31:47 $ local context state line typeset -A opt_args local global_opts global_opts=( "*:pdf_file_1 [pdf_file_2] ...:_files -g '*.(#i)pdf'" "-display:host\:display:" "-geometry:[x][{+|-}{+|-}]:" -help -helpall \*-iconic \*+iconic "-name:application name:" "*-setenv:=:" -tempFile "-tempFileTitle:title:" "(+useFrontEndProgram)-useFrontEndProgram" "(-useFrontEndProgram)+useFrontEndProgram" "-visual:or [depth=]:(id= best default)" "-xrm:X resource specification:" "-toPostScript:*::PostScript conversion options:= ->tops" ) local tops_opts tops_opts=( "-pairs:*:pdf_file_1 ps_file_1 ...:_files -g '*.(#i)(pdf|ps)'" -binary "-start:integer:" "-end:integer:" -optimizeForSpeed -landscape -reverse "(-even)-odd" "(-odd)-even" -commentsOff "(-level2 -level3)-level1" "(-level1 -level3)-level2" "(-level1 -level2)-level3" -printerhalftones -saveVM "-scale:integer:" -shrink "-size:page size (or custom size wxh in points):(letter tabloid ledger legal executive a3 a4 a5 b4 b5)" "-transQuality:transparency flattening level:(1 2 3 4 5)" "*:pdf_file ... [ps_dir]:_files -g '*.(#i)pdf'" ) _arguments $global_opts && return 0 [[ "$state" = tops ]] && _arguments $tops_opts && return 0 return 1 --envbJBWh7q8WU6mo--