From: Wim Yedema <yedema@natlab.research.philips.com>
To: zsh-workers@sunsite.auc.dk
Subject: configuration question
Date: 05 Aug 1999 15:33:22 +0200 [thread overview]
Message-ID: <uqvbtcm73od.fsf@hpas11.natlab.research.philips.com> (raw)
I'd like replace self-insert with a function that automatically
does something like "history-beginning-search-backward" the problem
with this is that it beeps when nothing is found and that the current
history number changes, meaning that every time I type something I
go backwards in the history even if the character that I type suits
the current history event just fine.
I tried something like this
---
insert-and-predict () {
LBUFFER="$LBUFFER$KEYS"
RBUFFER=""
zle history-beginning-search-backward
}
autoload insert-and-predict
zle -N self-insert insert-and-predict
---
can someone stop the beep and give me the right behaviour?
wim yedema
next reply other threads:[~1999-08-05 13:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-08-05 13:33 Wim Yedema [this message]
1999-08-05 14:07 ` Peter Stephenson
1999-08-05 16:00 ` 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=uqvbtcm73od.fsf@hpas11.natlab.research.philips.com \
--to=yedema@natlab.research.philips.com \
--cc=zsh-workers@sunsite.auc.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).