zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Hannu Koivisto <azure@iki.fi>, zsh-users@sunsite.dk
Subject: Re: history-incremental-search-backward with a twist
Date: Sat, 29 Sep 2001 02:41:48 +0000	[thread overview]
Message-ID: <1010929024149.ZM19026@candle.brasslantern.com> (raw)
In-Reply-To: <1010929014105.ZM18918@candle.brasslantern.com>

On Sep 29,  1:41am, Bart Schaefer wrote:
}
} Presuming you have 4.0.x, this is ridiculously easy ...

Except that I forgot about the silly problem with repeating the keystroke;
the "minibuffer" doesn't really have a "keymap", so you have to name the
widget the right thing.  Like so:

    function beginning-incremental-search {
	if [[ $LASTWIDGET == $WIDGET ]]
	then zle .$WIDGET
	else zle .$WIDGET $LBUFFER
	fi
    }

    zle -N history-incremental-search-backward beginning-incremental-search
    zle -N history-incremental-search-forward beginning-incremental-search

Which means you can't use the old history-incremental-search-* any more if
you want this variant to work.

Note to zsh-workers:  We really need to get real keymaps in there.  It
shouldn't even be very difficult any more, at least in the -dev version.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


  reply	other threads:[~2001-09-29  2:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-28 21:16 Hannu Koivisto
2001-09-29  1:41 ` Bart Schaefer
2001-09-29  2:41   ` Bart Schaefer [this message]
2001-09-29 14:51     ` Hannu Koivisto
2001-09-29 17: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=1010929024149.ZM19026@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=azure@iki.fi \
    --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).