Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Searching for "^" in the history
- X-seq: zsh-users 8481
- From: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Searching for "^" in the history
- Date: Thu, 10 Feb 2005 10:08:00 -0800
- In-reply-to: <20050210141644.GA30487@xxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20050210141644.GA30487@xxxxxxxxxxxxx>
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. 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).
..wayne..
Messages sorted by:
Reverse Date,
Date,
Thread,
Author