zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: changing bindings in isearch mode?
Date: Mon, 19 Jan 2009 09:17:55 -0800	[thread overview]
Message-ID: <090119091757.ZM5344@torch.brasslantern.com> (raw)
In-Reply-To: <20090119121204.4697b6a2@news01>

On Jan 19, 12:12pm, Peter Stephenson wrote:
}
} I was indeed thinking about this over the weekend and why no one had
} done it before. It really does look like it's that simple; this is
} quite a lot of oomph for a small patch.

The keymap is a good thing, but I suspect the reasons no one's bothered
before include (1) accept-search is no different than undefined-key in
this context, (2) if the keymap exists, it's possible to do something
moderately stupid like "bindkey -A main isearch", and (3) the *real*
oomph would come if user-defined widgets were usable in isearch mode
(and the widgets in that mode had distinct names).

} The name "accept-search" exercised me a bit. [...] (You could bind it
} for use in your own search mode, for example.)

You'd also have to define it with "zle -N" in that case, though, and
there follows the confusion as to why your custom widget doesn't get
called when the accept-search key is struck in isearch mode.

-- 


  reply	other threads:[~2009-01-19 17:18 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-17  6:54 Greg Klanderman
2009-01-17 17:56 ` Peter Stephenson
2009-01-17 18:23   ` Greg Klanderman
2009-01-19  9:44     ` Peter Stephenson
2009-01-19 12:12       ` Peter Stephenson
2009-01-19 17:17         ` Bart Schaefer [this message]
2009-01-22  4:01           ` Greg Klanderman
2009-01-22  9:57             ` Bart Schaefer
2009-01-22 21:25               ` Greg Klanderman
2009-01-21 20:43         ` Greg Klanderman
2009-01-17 19: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=090119091757.ZM5344@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@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).