Re: Undo a search - howto

Tony Balinski <[email protected]> Mon, 15 Feb 2010 23:53:23 +0100
Newsgroups gmane.editors.nedit.user
Message-ID <[email protected]>
Quoting Helmut Jarausch <[email protected]>:

> Hi,
>
> although I'm using NEdit for years now, I still wonder if there is
> a method to return to the location before a search has been issued.
> I known about setting a 'Mark' and going back to this, but is there
> a shorter method like 'Undoing a Search'?
>
> Many thanks for a hint,
> Helmut.

Only for incremental search, I think. If you start typing (or just paste into)
the incremental search text area, the cursor moves forward to match the search
string. You can delete the search string from the end and you will be brought
back to your start position once the last character is gone. This only works
if you don't move forward for a next occurrence, though.

A very easy way of marking your start point is to make a trivial modification
(on modifiable windows at least), eg overwriting a character with itself. You
then search as much as you like and then use Undo (Ctrl+Z typically) to return
to your start point. I do this very often.

Otherwise, this is an opportunity for you to hone your C skills and implement
exactly what you want :-)

Tony
-- 
NEdit Discuss mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/discuss