Hi Igor,<br><br>yes! ;-) <br>As far as I remember it was possible in VisualWorks, too. <br>But I did not find it in Pharo.<br><br>Sabine<br><br><br><div class="gmail_quote">On Fri, Sep 28, 2012 at 8:41 PM, Igor Stasenko <span dir="ltr"><<a href="mailto:siguctua@gmail.com" target="_blank">siguctua@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">ah, ok.. you want something simpler than search&replace ..<br>
<br>
i remember in Squeak there was something, that you could select a<br>
piece of text, then type something,<br>
and then press cmd-g (if i remember) to search for same occurrence and<br>
replace it again.<br>
but i am not sure if it works in pharo.<br>
<div class="HOEnZb"><div class="h5"><br>
On 28 September 2012 20:23, Sabine Knöfel <<a href="mailto:sabine.knoefel@gmail.com">sabine.knoefel@gmail.com</a>> wrote:<br>
> Thank you Hernán,<br>
><br>
> the refactoring browser is a very powerful tool.<br>
><br>
> But I need something quite easy. See the example screenshot. I just started<br>
> to rename the parameter "aHtmlRoot" to "html".<br>
><br>
> Now I have to doubleclick each single "aHtmlRoot" and paste "html". This is<br>
> boring. It would like that all the highlighted words change in the same<br>
> moment, I change the first one. This could be switched on in the system<br>
> settings.<br>
><br>
> This situation occurs at least daily to me. Am I the only one?<br>
><br>
> Greetings Sabine<br>
><br>
> PS: yes I know about cascading, this is not the point here;-)<br>
><br>
><br>
><br>
><br>
> On Fri, Sep 28, 2012 at 7:42 PM, Hernán Morales Durand<br>
> <<a href="mailto:hernan.morales@gmail.com">hernan.morales@gmail.com</a>> wrote:<br>
>><br>
>> You may use the Refactoring Browser from OmniBrowser to do that.<br>
>><br>
>> 1) Open a scoped browser, i.e. select a method, contextual menu -><br>
>> Refactoring scope -> Selection (you may filter by multiple methods,<br>
>> categories, classes or packages depending your current selection in OB)<br>
>> 2) In the new browser window, select method, contextual menu -> Refactor<br>
>> -> Source Regex...<br>
>><br>
>> For example given the method:<br>
>><br>
>> test1<br>
>> | var1 var2 var3 var4 |<br>
>><br>
>> var3 := #symbol1.<br>
>> var4 := 'cadena1'.<br>
>> var1 := 'my first testString'.<br>
>> var2 := 'my second testString'.<br>
>> ^ var1 foobar , var2 foobar<br>
>><br>
>> a regex refactoring replacing #symbol1 with 'symbol1' and 'testString'<br>
>> with 'myString' could be:<br>
>><br>
>> ORSourceRegexRefactoring new<br>
>> "Example 1: Replace symbols with strings"<br>
>> replace: '#(\w+)' with: '''$1''' ignoreCase: false;<br>
>> "Example 2: Replace occurrences of a string with another string"<br>
>> replace: '#*testString' with: 'myString';<br>
>> yourself<br>
>><br>
>> 3) Open menu on the refactoring source code, click Accept (DO NOT use the<br>
>> keyboard commands)<br>
>> 4) A new browser window will let you accept, filter, or cancel the<br>
>> refactorings.<br>
>><br>
>> If you want to modify message patterns/nodes, use the Refactor -> Rewrite<br>
>> code... templates. Take a look at:<br>
>> <a href="http://st-www.cs.illinois.edu/users/brant/Refactory/Rewrite.html" target="_blank">http://st-www.cs.illinois.edu/users/brant/Refactory/Rewrite.html</a> to learn<br>
>> about the rewrite rules.<br>
>> Hope it helps.<br>
>> Cheers,<br>
>><br>
>> Hernán<br>
>><br>
>><br>
>><br>
>> On 28/09/2012 4:51, Sabine Knöfel wrote:<br>
>>><br>
>>> Hi,<br>
>>><br>
>>> double clicking on one word in the system browser selects this word in<br>
>>> one<br>
>>> color and all other appearances of this wort in another color. This is<br>
>>> nice.<br>
>>> Is there a possibility to change ALL the occurences of this word in one<br>
>>> action? I did noch find this feature yet.<br>
>>><br>
>>> I do not mean the search and replace dialog - to many clicks while<br>
>>> developing.<br>
>>><br>
>>> Greetings Sabine<br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>> View this message in context:<br>
>>> <a href="http://forum.world.st/change-n-same-words-in-browser-with-one-action-tp4649372.html" target="_blank">http://forum.world.st/change-n-same-words-in-browser-with-one-action-tp4649372.html</a><br>
>>> Sent from the Seaside General mailing list archive at Nabble.com.<br>
>>> _______________________________________________<br>
>>> seaside mailing list<br>
>>> <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
>>> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
>>><br>
>><br>
>> _______________________________________________<br>
>> seaside mailing list<br>
>> <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
>> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> seaside mailing list<br>
> <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
><br>
<br>
<br>
<br>
</div></div><div class="im HOEnZb">--<br>
Best regards,<br>
Igor Stasenko.<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</div></div></blockquote></div><br>