From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Thu, 23 Oct 2008 20:26:09 +0200 From: "Rudolf Sykora" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <382936.47212.qm@web57610.mail.re1.yahoo.com> <20080819175641.3B7301E8C54@holo.morphisms.net> Subject: Re: [9fans] Using the Acme Editor Topicbox-Message-UUID: 25ec6d58-ead4-11e9-9d60-3106f5b1d025 2008/10/22 Rudolf Sykora : > 2008/8/19 Russ Cox : > >>> 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 > Well, since noone helped me I started to play with it to find at least some solution. I found that when I write /old/c/new/ [ENTER] . somewhere, highlight it (2 lines) and 2-1 click on Edit in the window with my file, then it works. Is there anything simpler? Ruda