zsh-users
 help / color / mirror / code / Atom feed
From: Vincent Lefevre <vincent@vinc17.org>
To: zsh-users@sunsite.dk
Subject: Re: Searching for "^" in the history
Date: Fri, 11 Feb 2005 01:09:41 +0100	[thread overview]
Message-ID: <20050211000941.GM30487@ay.vinc17.org> (raw)
In-Reply-To: <20050210180800.GA1912@blorf.net>

On 2005-02-10 10:08:00 -0800, Wayne Davison wrote:
> On Thu, Feb 10, 2005 at 03:16:44PM +0100, Vincent Lefevre wrote:
> > How can one search for the character "^" in the history (with
> > history-incremental-search-backward)?
> 
> The only way is to not put it as the first character in the search
> string -- i.e. to search for the character prior to the "^" as well
> as the "^" itself.

The problem is that I don't know this character.

> Yeah, that means that there is no way to search for just a "^" in
> zsh's current code. In the future it might be nice to upgrade the
> incremental search to a regex-understanding search like vim uses (it
> treats invalid regex elements as literal strings, so you can eaily
> search for something like "[" or "$" without having to backslash
> it).

Or could zsh be modified so that searching for ^^ (at the beginning of
the search string) is like searching for the ^ character? I doubt that
searching for the ^ character as the first character of a command (as
^^ currently does) is really useful.

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA


      reply	other threads:[~2005-02-11  0:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-10 14:16 Vincent Lefevre
     [not found] ` <16907.30377.109401.427969@parhasard.net>
2005-02-10 15:22   ` Vincent Lefevre
2005-02-10 18:08 ` Wayne Davison
2005-02-11  0:09   ` Vincent Lefevre [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=20050211000941.GM30487@ay.vinc17.org \
    --to=vincent@vinc17.org \
    --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).