<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[New displaying of the &quot;Search Results&quot; panel]]></title><description><![CDATA[<p dir="auto">Hello, <strong>All</strong>,</p>
<p dir="auto">One minor <strong>drawback</strong>, when you display the <strong><code>Search results</code></strong> panel, is that the <strong>name</strong> of <strong>each</strong> file does <strong>not</strong> appear <strong>before</strong> the line <strong>number</strong> and the line <strong>itself</strong> !</p>
<p dir="auto">See, for example, this post : <a href="https://community.notepad-plus-plus.org/topic/21722/format-of-search-results">https://community.notepad-plus-plus.org/topic/21722/format-of-search-results</a></p>
<p dir="auto">Here is the way to realize this <strong>goal</strong> !</p>
<hr />
<p dir="auto">Once any <strong><code>Search Results</code></strong> panel is displayed :</p>
<ul>
<li>
<p dir="auto">Hit the <strong><code>Ctrl + A</code></strong> shortcut</p>
</li>
<li>
<p dir="auto">Hit the <strong><code>Ctrl + C</code></strong> shortcut</p>
</li>
<li>
<p dir="auto">Open a <strong>new</strong> tab ( <strong><code>Ctrl + N</code></strong> )</p>
</li>
<li>
<p dir="auto">Paste the <strong><code>Search Results</code></strong> contents in this <strong>new</strong> tab ( <strong><code>Ctrl + V</code></strong>  )</p>
</li>
<li>
<p dir="auto">Run the option <strong><code>Edit &gt; Line operations &gt; Reverse line order</code></strong> ( <em>IMPORTANT</em> )</p>
</li>
<li>
<p dir="auto">Now, open the <strong>Replace</strong> dialog ( <strong><code>Ctrl + H</code></strong> )</p>
</li>
<li>
<p dir="auto"><strong>Uncheck</strong> all <strong>box</strong> options</p>
</li>
<li>
<p dir="auto">FIND <strong><code>(?-si)^\tLine\x20+(\d+)(?=(?s:.+?)^\x20\x20\u:.*\\(.+)(?= \())|^\x20\x20\u.+\R</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>?2\2\t\1\t</code></strong></p>
</li>
<li>
<p dir="auto"><strong>Check</strong> the ‘Wrap around’ option</p>
</li>
<li>
<p dir="auto">Select the <strong><code>Regular expression</code></strong> search <strong>mode</strong></p>
</li>
<li>
<p dir="auto">Click on the <strong><code>Replace All</code></strong> button</p>
</li>
<li>
<p dir="auto">Now, <strong>re</strong>-run the <strong><code>Edit &gt; Line operations &gt; Reverse line order</code></strong> option ( <em>IMPORTANT</em> )</p>
</li>
<li>
<p dir="auto">Finally, save this <strong>new</strong> tab for future <strong>study</strong> within <strong>N++</strong> or <strong>Excel</strong> !</p>
</li>
</ul>
<hr />
<p dir="auto">For a more <strong>appealing</strong> presentation within N++, if you have the <strong><code>Columns++</code></strong> plugin, do the following actions :</p>
<ul>
<li>
<p dir="auto">Check the <strong><code>Elastic tabstops</code></strong> option</p>
</li>
<li>
<p dir="auto">Run the <strong><code>Convert tabs to spaces</code></strong> option</p>
</li>
</ul>
<hr />
<p dir="auto">For example, I did a search of the word <strong><code>the</code></strong>, whatever its case, in <strong><code>Normal</code></strong> mode, on any <strong><code>.txt</code></strong> file of an <strong><code>USB</code></strong> key</p>
<pre><code class="language-diff">Search "the" (76665 hits in 498 files of 578 searched) [Normal]
</code></pre>
<p dir="auto">I got an <em>INPUT</em> file of <strong><code>51,224</code></strong> lines for about <strong><code>10,2 Mb</code></strong></p>
<p dir="auto">And, after the <strong>above</strong> process :</p>
<ul>
<li>
<p dir="auto"><strong>Reverse</strong> line order</p>
</li>
<li>
<p dir="auto"><strong>Regex</strong> Replacement</p>
</li>
<li>
<p dir="auto"><strong>Reverse</strong> line order</p>
</li>
</ul>
<p dir="auto">Which took <strong><code>66s</code></strong>, I got an <em>OUTPUT</em> file of <strong><code>50,713</code></strong> lines, for about <strong><code>12 Mb</code></strong>, with <em>filename, number and text</em> <strong>aligned</strong></p>
<p dir="auto">And in order to <strong>right</strong>-aligned the line <strong>numbers</strong>, do the following <strong>regex</strong> replacement :</p>
<p dir="auto">FIND <strong><code>(\d+)(\x20*)(?=\x20:\x20)</code></strong></p>
<p dir="auto">REPLACE <strong><code>\2\1</code></strong></p>
<p dir="auto"><img src="/assets/uploads/files/1778945918940-206d94c6-772e-4ae9-807d-ddf792ec10e6-image.jpeg" alt="206d94c6-772e-4ae9-807d-ddf792ec10e6-image.jpeg" class=" img-fluid img-markdown" /></p>
<p dir="auto">Voila !</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/27535/new-displaying-of-the-search-results-panel</link><generator>RSS for Node</generator><lastBuildDate>Sat, 16 May 2026 16:00:46 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/27535.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 16 May 2026 13:47:44 GMT</pubDate><ttl>60</ttl></channel></rss>