From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12745 invoked from network); 9 Oct 2004 21:54:15 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 9 Oct 2004 21:54:15 -0000 Received: (qmail 94016 invoked from network); 9 Oct 2004 21:54:08 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 9 Oct 2004 21:54:08 -0000 Received: (qmail 12879 invoked by alias); 9 Oct 2004 21:53:23 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8048 Received: (qmail 22933 invoked from network); 9 Oct 2004 20:53:21 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 9 Oct 2004 20:53:21 -0000 Received: (qmail 73432 invoked from network); 9 Oct 2004 20:53:21 -0000 Received: from hydrogen.ucsc.edu (128.114.41.29) by a.mx.sunsite.dk with SMTP; 9 Oct 2004 20:53:19 -0000 Received: from localhost (wgscott@localhost) by hydrogen.ucsc.edu (8.12.11/8.12.11) with ESMTP id i99KoDA1001433 for ; Sat, 9 Oct 2004 13:50:14 -0700 (PDT) X-Authentication-Warning: hydrogen.ucsc.edu: wgscott owned process doing -bs Date: Sat, 9 Oct 2004 13:50:13 -0700 (PDT) From: William Scott To: zsh-users@sunsite.dk Subject: simple question about completion and case In-Reply-To: <20041008135358.GA5067@scowler.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=-0.0 required=6.0 tests=BAYES_44 autolearn=no version=2.63 X-Spam-Hits: -0.0 Dear zsh folks: Since I use Mac OS X, I wrote a very simple-minded completion for the "open -a" command. The command "open -a Foo" is the functional equivalent of clicking on the application named Foo. The -a specifies it is an application. compctl -f -x 'p[2]' -s "(list of the applications available)" -- open where list of the applications available contains elements like Preview and Mail and so on that are in title case. It works ok. I would like to be able to type open -a preview and have it corrected to open -a Preview Is there a way to do so for the open command and not globally? Sorry if this is obvious to everyone but me but I spent a fair amount of time with the manual and experimenting to no avail. Many thanks in advance. Bill Scott