From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9881 invoked from network); 23 Jun 1998 11:43:46 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 23 Jun 1998 11:43:46 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id HAA07814; Tue, 23 Jun 1998 07:38:27 -0400 (EDT) Resent-Date: Tue, 23 Jun 1998 07:31:21 -0400 (EDT) Message-ID: <19980623133225.A25114@math.fu-berlin.de> Date: Tue, 23 Jun 1998 13:32:25 +0200 From: Sven Guckes To: zsh-users@math.gatech.edu Subject: Re: [Q] user-defined completion Mail-Followup-To: zsh-users@math.gatech.edu References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.92.8i In-Reply-To: ; from Didier Verna on Mon, Jun 22, 1998 at 12:14:31PM +0200 X-Mailer-Info: http://www.math.fu-berlin.de/~guckes/mutt/ X-Editor: Vim-5 http://www.vim.org/ Resent-Message-ID: <"BbFL32.0.dr1.78vZr"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1638 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Quoting Didier Verna (verna@inf.enst.fr): > I'd like to write a function for special command line completion, but that is > aware of the program whose command line we're completing. After reading the > doc, I see that user-defined functions get 2 arguments: pre and postfix. Is > there a way to make such functions aware of the program name ? Any ideas ? Are talking about "completion control" with "compctl"? "man zshcompctl"! Sven -- Sven Guckes guckes@math.fu-berlin.de using zsh-3.0.5 [961218] ZSH HomePage: http://www.zsh.org | Latest version: zsh-3.1.3 [980501] ZSH Pages: http://www.math.fu-berlin.de/~guckes/zsh/ Tips and tricks