From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7156 invoked from network); 5 May 2000 14:54:18 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 5 May 2000 14:54:18 -0000 Received: (qmail 15112 invoked by alias); 5 May 2000 14:54:03 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11209 Received: (qmail 15088 invoked from network); 5 May 2000 14:54:02 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer goliath.siemens.de) From: "Andrej Borsenkow" To: "Bart Schaefer" , Subject: RE: Command completion in nslookup Date: Fri, 5 May 2000 18:53:49 +0400 Message-ID: <002301bfb6a1$b89278a0$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 In-Reply-To: <1000505145023.ZM662@candle.brasslantern.com> > > On May 5, 4:35pm, Sven Wischnowsky wrote: > } Subject: Re: Command completion in nslookup > } > } Andrej Borsenkow wrote: > } > } > If I press TAB on empty line, nothing happens. Yes, I > remember, it was > } > done on purpose for normal command line completion > } > } [...] should we change it so that we get this insert-tab-in- > } column-one only when the completion code is *not* about to call a > } completion widget? > > You can get this effect already: > > really-do-complete-word-even-in-column-one() { zle > complete-word "$@" } > bindkey '\t' really-do-complete-word-even-in-column-one > But how do I get it for nslookup only (or for any nslookup-like case)? I'd prefer some context-based solution ... Sven's suggestion looks good with some shell-level support. -andrej