zsh-users
 help / color / mirror / code / Atom feed
* Problem with 'predict-on'
@ 2004-03-24  4:18 Thorsten Kampe
  2004-03-24 16:45 ` Bart Schaefer
  0 siblings, 1 reply; 4+ messages in thread
From: Thorsten Kampe @ 2004-03-24  4:18 UTC (permalink / raw)
  To: zsh-users

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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-03-25  3:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-24  4:18 Problem with 'predict-on' Thorsten Kampe
2004-03-24 16:45 ` Bart Schaefer
2004-03-24 20:25   ` Thorsten Kampe
2004-03-25  3:17     ` Bart Schaefer

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).