<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 18, 2014 at 7:48 PM, Clemens Lang <span dir="ltr">&lt;<a href="mailto:cal@macports.org" target="_blank">cal@macports.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<div class=""><br>
&gt; No! Homebrew&#39;s search &quot;functionality&quot; is my biggest problem with it. The<br>
&gt; columns you mentioned make it hard to read because it makes it harder to<br>
&gt; see how they are sorted. The alphabetization seems to be in order by column<br>
&gt; at first, but then at some random row the alphabetical order will switch<br>
&gt; over to the next column over, instead of continuing down that same column,<br>
&gt; with no marker to show where it happened, so you really have to be paying<br>
&gt; attention to find where something is in a screen of search output from<br>
&gt; Homebrew.<br>
<br>
</div>Nobody said we&#39;d have to write a weird implementation.<br>
<div class=""><br>
&gt; Also I find it useful that MacPorts prints the port descriptions<br>
&gt; when doing `port search`<br>
<br>
</div>And I&#39;m all for keeping that if there are less than, say 10 search results. When there are more than 10 results, we could print the names only along with instructions on how to get full results, should a user really want to read through all the descriptions (how often do you open the second page on Google again?). I also think the output could be improved to waste less space and use color. For more than 10 results, I think<br>


  port -q search git | while read a; read b; read c; do printf &quot;%-28s %-28s %-28s\n&quot; &quot;$a&quot; &quot;$b&quot; &quot;$c&quot;; done | grep -iE --color &#39;^|git&#39;<br>
is a pretty good shot at what I&#39;d like to see (optimized to 80 columns terminal and this specific query). For less than 10 results, the following looks nice to my eyes:<br>
<br>
$&gt; port search git<br>
port        version          description<br>
----        -------          -----------<br>
babl-devel  0.1.11-20140305  Babl is a library for dynamically handling pixel<br>
                             formats and managing conversions between them.<br>
                             This is the development version based on a recent<br>
                             snapshot of upstream &lt;red&gt;git&lt;/red&gt; master.<br>
bitcoin     0.8.6            client user interface for a peer-to-peer<br>
                             di&lt;red&gt;git&lt;/red&gt;al currency (yes, we also print<br>
                             useless matches like these)<br>
etc.<br>
<br></blockquote><div><br></div><div>Ah, so more like Fink&#39;s search results (well they use the term `apropos` but it is still a search) then? I do like Fink&#39;s search results, they even have a column with a simple symbol showing the package&#39;s installation status...</div>

</div></div></div>