From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5981 invoked from network); 24 Mar 2004 20:31:52 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 24 Mar 2004 20:31:52 -0000 Received: (qmail 17790 invoked by alias); 24 Mar 2004 20:31:28 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7262 Received: (qmail 17731 invoked from network); 24 Mar 2004 20:31:28 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 24 Mar 2004 20:31:28 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.225.247.86] by sunsite.dk (MessageWall 1.0.8) with SMTP; 24 Mar 2004 20:31:27 -0000 Received: (qmail 23887 invoked from network); 24 Mar 2004 20:31:27 -0000 Received: from main.gmane.org (80.91.224.249) by a.mx.sunsite.dk with SMTP; 24 Mar 2004 20:31:25 -0000 Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1B6F24-0008Vn-00 for ; Wed, 24 Mar 2004 21:31:24 +0100 Received: from isi-dialin-129-79.isionline-dialin.de ([195.158.129.79]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Mar 2004 21:31:24 +0100 Received: from thorsten by isi-dialin-129-79.isionline-dialin.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Mar 2004 21:31:24 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: Thorsten Kampe Subject: Re: Problem with 'predict-on' Date: Wed, 24 Mar 2004 21:25:39 +0100 Message-ID: <1ox5qp2em0zf0.dlg@thorstenkampe.de> References: <1040324164511.ZM15770@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: isi-dialin-129-79.isionline-dialin.de User-Agent: 40tude_Dialog/2.0.10.1de Sender: news 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=none autolearn=no version=2.63 X-Spam-Hits: 0.0 * Bart Schaefer (2004-03-24 17:45 +0100) > On Mar 24, 5:18am, Thorsten Kampe wrote: > } I'm testing the ZLE widget "predict-on" with... > > predict-on is probably due for an overhaul. It was written for 3.1.x > (I've forgotten which value of 'x') and only updated once about a year > ago. > > } autoload -U predict-on; predict-on > > } This means that predict-on is active by default. > > Actually a better way to accomplish this is > > zle-line-init() { predict-on } > zle -N zle-line-init > > Calling predict-on in .zshrc means it's on for the very first prompt, > but zle-line-init makes sure it's on at the beginning of every prompt. It works in 4.2 (but not 4.1.X). And the problems with pasting seem to be only a problem with the 4.1 Cygwin zsh and not my 4.2.0 Linux zsh. But I think the real culprit is *toggle*. It should turn off predict-on when predict-on doesn't make sense. But toggle turns off predict-on as soon as I type my first character (and that *really* doesn't make sense) Thanks, Thorsten [1] autoload -U predict-on; predict-on zle-line-init() { predict-on } zle -N zle-line-init zle -N predict-on zle -N predict-off bindkey '^Z' predict-on bindkey '^X^Z' predict-off zstyle ':predict' toggle true zstyle ':predict' verbose true