2008/8/19 Russ Cox <[EMAIL PROTECTED]>:

>> 06. Search and replace with confirmation at each item
>
> Put the cursor at the top of the file.
> In the tag, type and select
>
>        Edit .+#0/old/c/new/
>
> and middle click it.  That will search for old, replace it
> with new, and scroll the file to highlight and show the
> replacement.  If you don't like that change, you middle
> click Undo.  Either way, middle clicking the Edit command
> will find and change the next occurrence.  So you can
> just sit there middle clicking the Edit command until
> you find one that you didn't mean to change, Undo,
> and then go back to middle clicking Edit.  Selecting
> the command in the tag keeps acme from moving the
> mouse to the changed selection, so that it is easier
> to repeat the command.

Hello,

I just needed this and it does not work for me.
The command really goes through occurences of 'old' and highlights
them, but it doesn't scroll, so I can't see them... which is somewhat
crucial for beeing able to confirm/reject the change.
I also don't quite understand why that .+#0 is there... Actually my
first attempt would be just 'Edit /old/c/new/', which seems to be
doing the wanted, but doesn't scroll either (both in sam and acme).
The command 'Edit /old/' by itself scrolls, though...
So?

Thanks
Ruda

Reply via email to