From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21989 invoked from network); 15 Dec 2003 18:43:27 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 15 Dec 2003 18:43:27 -0000 Received: (qmail 19583 invoked by alias); 15 Dec 2003 18:43:19 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19287 Received: (qmail 19560 invoked from network); 15 Dec 2003 18:43:19 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 15 Dec 2003 18:43:19 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.11.8.53] by sunsite.dk (MessageWall 1.0.8) with SMTP; 15 Dec 2003 18:43:18 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id hBFIhH213275 for zsh-workers@sunsite.dk; Mon, 15 Dec 2003 10:43:17 -0800 X-Authentication-Warning: candle.brasslantern.com: schaefer set sender to schaefer@closedmail.com using -f From: Bart Schaefer Message-Id: <1031215184316.ZM13274@candle.brasslantern.com> Date: Mon, 15 Dec 2003 18:43:16 +0000 In-Reply-To: <21461.1071485875@csr.com> Comments: In reply to Peter Stephenson "Re: PATCH: widget called when zle starts." (Dec 15, 10:57am) References: <21461.1071485875@csr.com> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk (Zsh hackers list) Subject: Re: PATCH: widget called when zle starts. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Dec 15, 10:57am, Peter Stephenson wrote: } } It should be possible to get more control, though. You can already test } for context, e.g. $PREBUFFER. Another zle variable giving more about } the context is a possibility. I think this is almost a requirement. Otherwise one is reduced to doing things like this: precmd() { zle_use_cmd_mode=1 } zle-line-init() { ((zle_use_cmd_mode)) && zle vi-cmd-mode zle_use_cmd_mode=0 }