From: Thorsten Kampe <thorsten@thorstenkampe.de>
To: zsh-users@sunsite.dk
Subject: Re: Problem with 'predict-on'
Date: Wed, 24 Mar 2004 21:25:39 +0100 [thread overview]
Message-ID: <1ox5qp2em0zf0.dlg@thorstenkampe.de> (raw)
In-Reply-To: <1040324164511.ZM15770@candle.brasslantern.com>
* 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
next prev parent reply other threads:[~2004-03-24 20:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-24 4:18 Thorsten Kampe
2004-03-24 16:45 ` Bart Schaefer
2004-03-24 20:25 ` Thorsten Kampe [this message]
2004-03-25 3:17 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1ox5qp2em0zf0.dlg@thorstenkampe.de \
--to=thorsten@thorstenkampe.de \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).