<div dir="ltr">How would that differ from SearchBrowser found here?<div><a href="https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Tools/blob/main/DevelopmentTools/SearchBrowser.pck.st">https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Tools/blob/main/DevelopmentTools/SearchBrowser.pck.st</a><br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Mon, Dec 30, 2024 at 7:58 AM Jon Raiford via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.cuis.st</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div class="msg-6722026335639713431">
<div bgcolor="white" lang="EN-US" style="overflow-wrap: break-word;">
<div class="m_-6722026335639713431WordSection1">
<p class="MsoNormal"><span style="font-size:12pt">Hi Hilaire,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt">I tried to just add the scope part. I really don’t use the modifier keys. That logic was all brought over from the original code. Maybe we need to grab their state before displaying the scope prompt? Btw,
I’d ultimately like to see this be an integrated dialog that has the search text and the scope in one place. It could also then show checkboxes in place of the modifier keys to make it more intuitive / intuitable.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt">Jon<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt"><u></u> <u></u></span></p>
<div id="m_-6722026335639713431mail-editor-reference-message-container">
<div>
<div>
<div style="border-width:1pt medium medium;border-style:solid none none;border-color:rgb(181,196,223) currentcolor currentcolor;padding:3pt 0in 0in">
<p class="MsoNormal" style="margin-bottom:12pt"><b><span style="font-size:12pt;color:black">From:
</span></b><span style="font-size:12pt;color:black">Cuis-dev <<a href="mailto:cuis-dev-bounces@lists.cuis.st" target="_blank">cuis-dev-bounces@lists.cuis.st</a>> on behalf of Hilaire Fernandes via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st" target="_blank">cuis-dev@lists.cuis.st</a>><br>
<b>Date: </b>Sunday, December 29, 2024 at 5:32</span><span style="font-size:12pt;font-family:Arial,sans-serif;color:black"> </span><span style="font-size:12pt;color:black">AM<br>
<b>To: </b><a href="mailto:cuis-dev@lists.cuis.st" target="_blank">cuis-dev@lists.cuis.st</a> <<a href="mailto:cuis-dev@lists.cuis.st" target="_blank">cuis-dev@lists.cuis.st</a>><br>
<b>Cc: </b>Hilaire Fernandes <<a href="mailto:hfern@free.fr" target="_blank">hfern@free.fr</a>><br>
<b>Subject: </b>Re: [Cuis-dev] Find with Scope<u></u><u></u></span></p>
</div>
<p><span style="font-size:13.5pt">This is useful, thanks. </span>Some features, need to be documented thought (where?) when I read this method below. I did not find how to use the Shift or Ctrl alternatives. Pressing on of those prevent the search to start.<u></u><u></u></p>
<pre>browseMethodsWithSourceString: aString<u></u><u></u></pre>
<pre>scopeClass: scopeClass<u></u><u></u></pre>
<pre>includeSubclasses: includeSubclasses<u></u><u></u></pre>
<pre>includeSuperclasses: includeSuperclasses<u></u><u></u></pre>
<pre> "Smalltalk browseMethodsWithSourceString: 'SourceString' "<u></u><u></u></pre>
<pre> "Launch a browser on all methods whose source code contains aString as a substring."<u></u><u></u></pre>
<pre><u></u> <u></u></pre>
<pre> | caseSensitive suffix selectString |<u></u><u></u></pre>
<pre> Sensor controlKeyPressed ifTrue: [<u></u><u></u></pre>
<pre> selectString := ((aString findTokens: '*') sorted: [ :a :b | a size > b size ]) first.<u></u><u></u></pre>
<pre> ^ self <u></u><u></u></pre>
<pre> browseMessageList: (self allMethodsSourceStringMatching: '*', aString, '*')<u></u><u></u></pre>
<pre> name: 'Methods matched by ' , aString printString , ' (no ctrl for exact match)'<u></u><u></u></pre>
<pre> autoHighlight: selectString<u></u><u></u></pre>
<pre> allOccurrences: true<u></u><u></u></pre>
<pre> ].<u></u><u></u></pre>
<pre> <b> suffix := (caseSensitive := Sensor shiftPressed)<u></u><u></u></b></pre>
<pre><b> ifTrue: [' (case-sensitive. Use ctrl for $* pattern match.)']<u></u><u></u></b></pre>
<pre><b> ifFalse: [' (shift for case-sensitive. ctrl for $* pattern match.)'].</b><u></u><u></u></pre>
<pre> ^ self <u></u><u></u></pre>
<pre> browseMessageList: (self allMethodsWithSourceString: aString matchCase: caseSensitive scopeClass: scopeClass includeSubclasses: includeSubclasses includeSuperclasses: includeSuperclasses)<u></u><u></u></pre>
<pre> name: 'Methods containing ' , aString printString , suffix<u></u><u></u></pre>
<pre> autoHighlight: aString<u></u><u></u></pre>
<pre> allOccurrences: true.<u></u><u></u></pre>
<div>
<p class="MsoNormal"><span style="font-size:12pt"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt">Le 25/11/2024 à 19:47, Juan Vuletich via Cuis-dev a écrit :<u></u><u></u></span></p>
</div>
<blockquote style="margin-top:5pt;margin-bottom:5pt">
<p class="MsoNormal"><span style="font-size:12pt"><br>
I recently replaced the 'Method Source with it' menu option in Smalltalk Editors with the new 'Find with Scope' option by Jon Raiford. I'm sure it is more convenient and useful. Please try it and share your thoughts.
<br>
<br>
I have also been doing other tweaks to improve usability, for instance 'browse package' on all four lists in the Browser, and minor tweaks here and there. Feedback is most welcome as usual.
<u></u><u></u></span></p>
</blockquote>
<pre>-- <u></u><u></u></pre>
<pre><a href="http://mamot.fr/@drgeo" target="_blank">http://mamot.fr/@drgeo</a><u></u><u></u></pre>
</div>
</div>
</div>
</div>
</div>
-- <br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a href="https://lists.cuis.st/mailman/listinfo/cuis-dev" rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</div></blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><font face="arial, helvetica, sans-serif">R. Mark Volkmann</font></div><div><span style="font-size:12.8px"><font face="arial, helvetica, sans-serif">Object Computing, Inc.</font></span></div></div></div></div></div></div></div></div>