bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: reverse-i-search enhancement request


From: Chet Ramey
Subject: Re: reverse-i-search enhancement request
Date: Tue, 11 Oct 2011 15:49:23 -0400

> Sometimes when I want to distinguish between commands in the history
> what differs them or makes them special is far from each other in the
> command making reverse-i-search function very bad. Since I have to type
> everything in between exactly, because it hits only on the full string.
> 
> example:
> . ~/virtualenv/py26/bin/activate; ~/projects/project/manage.py runserver
> 
> Relevant parts: "py26" and "project"
>       
> Solution:
> Let spaces in reverse-i-search hit individually.

What you want is a regular expression search where the space is mapped
to ".*".  I wonder if it might be better to add that to the non-incremental
search code instead of a special case like this.

(The problem with an incremental regexp search is that you essentially have
to start the search over with every character.  You could do it, but is it
worth it?)

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]