From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4838 invoked from network); 24 Mar 2004 04:19:21 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 24 Mar 2004 04:19:21 -0000 Received: (qmail 8441 invoked by alias); 24 Mar 2004 04:19:05 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7251 Received: (qmail 8430 invoked from network); 24 Mar 2004 04:19:04 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 24 Mar 2004 04:19:04 -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 4:19:4 -0000 Received: (qmail 32219 invoked from network); 24 Mar 2004 04:19:04 -0000 Received: from main.gmane.org (80.91.224.249) by a.mx.sunsite.dk with SMTP; 24 Mar 2004 04:19:00 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1B5zr1-0000Pn-00 for ; Wed, 24 Mar 2004 05:18:59 +0100 Received: from isi-dialin-129-118.isionline-dialin.de ([195.158.129.118]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Mar 2004 05:18:59 +0100 Received: from thorsten by isi-dialin-129-118.isionline-dialin.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Mar 2004 05:18:59 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: Thorsten Kampe Subject: Problem with 'predict-on' Date: Wed, 24 Mar 2004 05:18:57 +0100 Message-ID: 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-118.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 Hi zsh-users, I'm testing the ZLE widget "predict-on" with... autoload -U predict-on; predict-on zle -N predict-on zle -N predict-off bindkey '^X^Z' predict-on bindkey '^Z' predict-off zstyle ':predict' verbose 1 This means that predict-on is active by default. But there are some flaws with predict-on: first of all I can not backspace the first character I typed in the command line. Then pasting text via [Shift]-[Ins] doesn't turn off prediction (like it should[1]). So I RTFMed and chose "toggle"[2]: "zstyle ':predict' toggle 1". But when I write this in my .zshrc, predict-on is automatically "off" (although "toggle"'s conditions for "toggling" aren't met: "when editing a multi-line buffer or after moving into the middle of a line and then deleting a character"). So my question is: how can I turn on "predict-on" by default and circumvent its negative circumstances when pasting text (and maybe others I haven't discovered yet)? Thorsten [1] "Editing a multiline buffer or pasting in a chunk of text; it's unlikely prediction is wanted" -- functions/predict-on [2] used by predict-on [...] in the context ':predict'. If set to [...] 'true', predictive typing is automatically toggled off in situations where it is unlikely to be useful, such as when editing a multi-line buffer or after moving into the middle of a line and then deleting a character.