zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Zsh workers <zsh-workers@zsh.org>
Subject: Re: PATCH: muddled completion search status
Date: Wed, 17 Jun 2015 11:05:01 +0200	[thread overview]
Message-ID: <28045.1434531901@thecus.kiddle.eu> (raw)
In-Reply-To: <150616171549.ZM28192@torch.brasslantern.com>

Bart wrote:
> Unless I misunderstand you, repeating a search in emacs searches again
> for the last-searched-for string no matter which direction the new
> search is going.  The same is true for vi's "n" or "N" command for
> searching again up/downward.  Why do you think it's wrong to restore
> the last search string?  I would prefer not to break similarity (I won't
> go so far as to say "compatibility") with emacs in this regard.
> 
> So maybe I'm just not following what you mean.

This is not the reuse of the current search string which is what you
describe but a feature where an older, previous search string from a
past search gets reinstated:

% echo one
% echo two
% ^Recho^J
% echo three
% ^R^R
bck-i-search: echo_

When the current search string is empty, invoking either of
history-incremental-search-for/back-ward will reinstate an older search.
With my change, a direction change suppresses this.

Oliver


      parent reply	other threads:[~2015-06-17  9:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-16 10:29 Oliver Kiddle
2015-06-16 22:35 ` Oliver Kiddle
2015-06-17  0:15   ` Bart Schaefer
2015-06-17  2:23     ` Greg Klanderman
2015-06-17  9:05     ` Oliver Kiddle [this message]

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=28045.1434531901@thecus.kiddle.eu \
    --to=okiddle@yahoo.co.uk \
    --cc=zsh-workers@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).