zsh-users
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: Felipe Contreras <felipe.contreras@gmail.com>
Cc: zsh-users@zsh.org
Subject: Re: Please fix history-search-backward/forward
Date: Sat, 28 Aug 2010 22:55:20 +0200	[thread overview]
Message-ID: <AANLkTi=PSYk5zM=1-TyDhfD0GauPrxPGXfnuCOX2KLKW@mail.gmail.com> (raw)
In-Reply-To: <AANLkTikC=C6CD0ZEiuLP__rtS97ePhY_MkpgutnvkeS4@mail.gmail.com>

On 28 August 2010 20:54, Felipe Contreras <felipe.contreras@gmail.com> wrote:
> Hi,
>
> zle says:
> Search backward in the history for a line beginning with the first
> word in the buffer.
>
> GNU readline says:
> Search backward through the history for the string of characters
> between the start of the current line and the point.
>
> I don't see why anybody would want zle's behavior. When I type "git
> check<TAB>"; I expect the whole text to be searched; if I wanted only
> the first word, I would type only the first word "git <TAB>". There's
> absolutely no advantage of zle's way.
>
> Now, it possible to workaround that behavior through
> history-search-end[1]. However, I would expect such basic
> functionality to be a one-liner configuration, or even better, just
> make zle's history-search-backward work like that by default.
>
> Moreover, it seems nobody has found necessary to workaround readline's
> behavior to mimic zle's behavior, and with good reason I think.
>
> This is a small issue, but it would improve the initial experience of
> people trying zsh.
>
> [1] http://zsh.sourceforge.net/Doc/Release/User-Contributions.html
>

I think you want history-beginning-search-backward/forward ? Changing
the effects of a widget is (and I think I can say this quite safely)
is not really an option.

-- 
Mikael Magnusson


  reply	other threads:[~2010-08-28 21:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-28 18:54 Felipe Contreras
2010-08-28 20:55 ` Mikael Magnusson [this message]
2010-08-28 22:23   ` Felipe Contreras
2010-08-28 22:33     ` Mikael Magnusson
2010-08-29  0:52       ` Felipe Contreras
2010-08-30 17:34         ` 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='AANLkTi=PSYk5zM=1-TyDhfD0GauPrxPGXfnuCOX2KLKW@mail.gmail.com' \
    --to=mikachu@gmail.com \
    --cc=felipe.contreras@gmail.com \
    --cc=zsh-users@zsh.org \
    /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).