zsh-users
 help / color / mirror / code / Atom feed
From: Felipe Contreras <felipe.contreras@gmail.com>
To: zsh-users@zsh.org
Subject: Please fix history-search-backward/forward
Date: Sat, 28 Aug 2010 21:54:37 +0300	[thread overview]
Message-ID: <AANLkTikC=C6CD0ZEiuLP__rtS97ePhY_MkpgutnvkeS4@mail.gmail.com> (raw)

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

-- 
Felipe Contreras


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

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-28 18:54 Felipe Contreras [this message]
2010-08-28 20:55 ` Mikael Magnusson
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='AANLkTikC=C6CD0ZEiuLP__rtS97ePhY_MkpgutnvkeS4@mail.gmail.com' \
    --to=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).