From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3262 invoked from network); 25 Jul 2000 16:56:09 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 25 Jul 2000 16:56:09 -0000 Received: (qmail 21369 invoked by alias); 25 Jul 2000 16:55:44 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12370 Received: (qmail 21343 invoked from network); 25 Jul 2000 16:55:42 -0000 From: "Bart Schaefer" Message-Id: <1000725165528.ZM20231@candle.brasslantern.com> Date: Tue, 25 Jul 2000 16:55:28 +0000 In-Reply-To: <1000725153922.ZM20015@candle.brasslantern.com> Comments: In reply to "Bart Schaefer" "Re: Completion in the first character position" (Jul 25, 3:39pm) References: <200007251314.OAA90882@cm01.ess> <200007251339.PAA08266@beta.informatik.hu-berlin.de> <1000725153922.ZM20015@candle.brasslantern.com> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk Subject: PATCH: zed (Re: Completion in the first character position) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jul 25, 3:39pm, Bart Schaefer wrote: } Subject: Re: Completion in the first character position } } local curcontext=${0}::: } zstyle ":completion:${0}:*" insert-tab no } } Which reminds me: `zed' should do something similar. Anybody object to this patch? Perhaps the patterns used/tested in the zstyle commands should be more specific? (The default value of insert-tab is `no' (false, etc.) inside vared, but that's not appropriate for zed. The `zstyle -m' below causes the style to be installed only if it hasn't already been set to something else; is there a better way to accomplish the same effect?) Index: Functions/Misc/zed =================================================================== @@ -19,6 +19,11 @@ [[ -z "$1" ]] && echo 'Usage: "zed filename" or "zed -f function"' && return 1 +local curcontext=zed::: + +zstyle -m ":completion:zed:*" insert-tab '*' || + zstyle ":completion:zed:*" insert-tab yes + # catch interrupts cleanup="$(bindkey -L "^M"; bindkey -L -M emacs "^X^W"; bindkey -aL "ZZ" echo "trap - INT EXIT"; trap)" -- 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