<?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[put search result right in the middle of screen]]></title><description><![CDATA[<p dir="auto">I would really appreciate, when I could center the location of the search result right in the middle of screen: Imagine a long text wider than the screen. The vertical centering seems to be okay (although it’s also not the vertical center), but the horizontal one puts the marked search result often just to the (right) margin.<br />
For a prompted Search&amp;Replace I need the context of the search result and currently have to use the horizontal scroll bar …</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20274/put-search-result-right-in-the-middle-of-screen</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 19:48:41 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20274.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 04 Nov 2020 21:11:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to put search result right in the middle of screen on Thu, 14 Mar 2024 01:00:29 GMT]]></title><description><![CDATA[<p dir="auto">I got progress :)<br />
I found a JSON Formatter / Validator that formatted that mess from above to this:<br />
<img src="/assets/uploads/files/1710377965337-0c957bdb-81df-457e-8f99-4689fedeafd2-image.png" alt="0c957bdb-81df-457e-8f99-4689fedeafd2-image.png" class=" img-fluid img-markdown" /><br />
Look much more easy to work with, the game accepts it and i can use Notepad++ :)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93558</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93558</guid><dc:creator><![CDATA[Auryn Me]]></dc:creator><pubDate>Thu, 14 Mar 2024 01:00:29 GMT</pubDate></item><item><title><![CDATA[Reply to put search result right in the middle of screen on Thu, 14 Mar 2024 00:15:15 GMT]]></title><description><![CDATA[<p dir="auto">Thanks to boths.<br />
Sadly it seems i under estimated how complicated this JSON will become.<br />
I am trying to translate a game from japanese to english but the text is interleaved with formatting “codes” and graphics/sound calls. It seemed that by searching “CodeName”:“文章の表示”,“parameters”:[ (that japanese text meaning “Display of text”) I would find the text just after it (see the bottom hit).<br />
Sadly as you can see on the first hit, it is not the case because after my search there are more “calls” before the text and by parsing the JSON in this Hex editor, i saw that there are even text without the part i was searching.  I probably need to slowly parse it by hand :(<br />
And yes, not all japanese text has to be translated because example  SExxxx/BGSxxxxx are sound effect and background sounds.<br />
Thanks anyway.</p>
<p dir="auto">"<img src="/assets/uploads/files/1710374697122-012b477c-5241-48cf-861e-e50a160fd49e-image.png" alt="012b477c-5241-48cf-861e-e50a160fd49e-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/93554</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93554</guid><dc:creator><![CDATA[Auryn Me]]></dc:creator><pubDate>Thu, 14 Mar 2024 00:15:15 GMT</pubDate></item><item><title><![CDATA[Reply to put search result right in the middle of screen on Wed, 13 Mar 2024 23:08:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/30441">@Auryn-Me</a> said in <a href="/post/93545">put search result right in the middle of screen</a>:</p>
<blockquote>
<p dir="auto">I have JSON files where 1 line is thousands of character long.<br />
I need to search for something (let’s say “Parameter[”) and then change what is next and this x times on the same line</p>
</blockquote>
<p dir="auto">You might find <a href="https://github.com/molsonkiko/JsonToolsNppPlugin" rel="nofollow ugc">the JsonTools plugin</a> useful.</p>
<p dir="auto">Example usage (using a randomly generated “tweet” using a Twitter’s API schema):</p>
<p dir="auto"><img src="/assets/uploads/files/1710371138866-69d8f212-04dd-4c2c-9adc-b52dd649ec92-image.png" alt="69d8f212-04dd-4c2c-9adc-b52dd649ec92-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">The tree view above the <code>Find/replace in JSON</code> dialog box shows a list of results, and when you click on a node in the tree (or navigate to that node using the arrow keys after selecting another node), the caret jumps to the location of the corresponding text in the document, as shown above.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93553</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93553</guid><dc:creator><![CDATA[Mark Olson]]></dc:creator><pubDate>Wed, 13 Mar 2024 23:08:12 GMT</pubDate></item><item><title><![CDATA[Reply to put search result right in the middle of screen on Wed, 13 Mar 2024 20:24:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/30441">@Auryn-Me</a> said in <a href="/post/93545">put search result right in the middle of screen</a>:</p>
<blockquote>
<p dir="auto">files where 1 line is thousands of character long.</p>
</blockquote>
<blockquote>
<p dir="auto">it would be very useful if the search window could show only starting from the search hit onwards.<br />
Is there a way to do that??</p>
</blockquote>
<p dir="auto">Not really.</p>
<p dir="auto">A search hit could be anywhere in long lines (lines that are too long to show their entire length in the window).  So, for example, the first match’s hit text could be in column 1 of the first line of output, the second match’s hit text could be in column 2000.  I think you can see the logistical problem; there’s no way to show both column 1 and 2000 at the same time.</p>
<p dir="auto">If lines are really long, they are truncated in the <em>Search results</em> window and a <code>...</code> is put at the end.  I suppose something like this could be done at the start of each line, and individually for each line, thus keeping search hit text in roughly the same column of each output line.  But this isn’t how Notepad++ currently works and would involve someone making a feature request for new behavior, and having the developers agree to implement it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93548</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93548</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 13 Mar 2024 20:24:41 GMT</pubDate></item><item><title><![CDATA[Reply to put search result right in the middle of screen on Wed, 13 Mar 2024 19:46:17 GMT]]></title><description><![CDATA[<p dir="auto">Hi guys,<br />
i answer to this old post because what you said here helped me but it is not really the solution to my problem.<br />
My first problem was the same as the guy that opened this post and that the search result was on the right side of the window and actually what mattered to me, was exactly after what i seached and i had to painfully scroll right to reveal what i needed.<br />
The formula above helped with this problem but i have another problem related to this.<br />
I have JSON files where 1 line is thousands of character long.<br />
I need to search for something (let’s say “Parameter[”)  and then change what is next and this x times on the same line.<br />
The search result window, show always line 6 (in my case) and all the text from the beginning of that line so that i see only the first maybe 2-3 occasions of “Parameter[” and then just a repetition of the beginning of the line for each further hit.<br />
Sure, when i click it, it jumps on the right spot in the editor but it would be very useful if the search window could show only starting from the search hit onwards.<br />
Is there a way to do that??</p>
]]></description><link>https://community.notepad-plus-plus.org/post/93545</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/93545</guid><dc:creator><![CDATA[Auryn Me]]></dc:creator><pubDate>Wed, 13 Mar 2024 19:46:17 GMT</pubDate></item><item><title><![CDATA[Reply to put search result right in the middle of screen on Thu, 05 Nov 2020 18:05:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a> said in <a href="/post/59446">put search result right in the middle of screen</a>:</p>
<blockquote>
<p dir="auto">Truly one should do it this way: \Qtest\E(?-s).{20} but…I realize that no one is going to type all that to achieve this workaround. :-)</p>
</blockquote>
<p dir="auto">Sure, for that I would try something like this AutoHotkey —the <code>*</code> removes the hotkey expression— in the search field:</p>
<pre><code class="language-z">:*:qre::
SendInput, {text}\Q\E(?-s).{20}
SendInput, {Left 12}    ; sends the caret back between \Q and \E
return
</code></pre>
<p dir="auto">Have fun!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59475</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59475</guid><dc:creator><![CDATA[astrosofista]]></dc:creator><pubDate>Thu, 05 Nov 2020 18:05:27 GMT</pubDate></item><item><title><![CDATA[Reply to put search result right in the middle of screen on Thu, 05 Nov 2020 12:20:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/20281">@Pfiffikus</a> said in <a href="/post/59440">put search result right in the middle of screen</a>:</p>
<blockquote>
<p dir="auto">but I like to use such feature in a dialog-based search&amp;replace …<br />
How to use the Find-Result-Panel in this workflow?</p>
</blockquote>
<p dir="auto">The horizontal scrollbar only scrolls enough to show you your entire matching text.<br />
Automatic horizontal scroll by N++ is a bit different than vertical scroll for this purpose.</p>
<p dir="auto">Here’s a workaround you won’t like :-)</p>
<p dir="auto">Do your search in Regular expression search mode and add <code>.{20}</code> to the end of your find text.</p>
<p dir="auto">For example, if you want to search for <code>test</code> then instead search for <code>test.{20}</code></p>
<p dir="auto">Such a match on a long line would scroll a hit of <code>test</code> plus the following 20 characters into view horizontally. Adjust the <code>20</code> to a number that meets your need.</p>
<p dir="auto">Note: There are problems with this approach.  Truly one should do it this way: <code>\Qtest\E(?-s).{20}</code> but…I realize that no one is going to type all that to achieve this workaround. :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59446</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59446</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 05 Nov 2020 12:20:57 GMT</pubDate></item><item><title><![CDATA[Reply to put search result right in the middle of screen on Thu, 05 Nov 2020 09:45:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/195">@guy038</a>, many thanks for that hint … but I like to use such feature in a dialog-based search&amp;<em>replace</em> …<br />
How to use the Find-Result-Panel in <em>this</em> workflow?</p>
<p dir="auto">BTW: <em>…  right click inside the Find-Result-Panel …</em> is really a very new feature: <em>… Word wrap long lines</em> isn’t translated into German ;(</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59440</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59440</guid><dc:creator><![CDATA[Pfiffikus]]></dc:creator><pubDate>Thu, 05 Nov 2020 09:45:17 GMT</pubDate></item><item><title><![CDATA[Reply to put search result right in the middle of screen on Wed, 04 Nov 2020 21:49:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/195">@guy038</a> said in <a href="/post/59425">put search result right in the middle of screen</a>:</p>
<blockquote>
<p dir="auto">since the last v7.9.1 N++ version, you can split long lines of the Find result panel</p>
</blockquote>
<p dir="auto">Actually a feature of 7.9.0</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59426</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59426</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 04 Nov 2020 21:49:25 GMT</pubDate></item><item><title><![CDATA[Reply to put search result right in the middle of screen on Wed, 04 Nov 2020 21:48:01 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/20281">@Pfiffikus</a>, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@alan-kilborn</a>, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@peterjones</a> and <strong>All</strong>,</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/20281">@Pfiffikus</a>, since the <strong>last</strong> <strong><code>v7.9.1</code></strong> N++ version, you can <strong>split</strong> <em>long</em> lines of the <strong><code>Find result</code></strong> panel ! This should help you to <strong>easily</strong> visualize the different <strong>hits</strong> !</p>
<p dir="auto">Simply, <strong>right</strong> click inside the <strong><code>Find result</code></strong> panel and choose the <strong><code>Word wrap long lines</code></strong> option ;-))</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59425</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59425</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 04 Nov 2020 21:48:01 GMT</pubDate></item><item><title><![CDATA[Reply to put search result right in the middle of screen on Wed, 04 Nov 2020 21:36:23 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">I think OP means the location of the hit’s selected text when Find Next is used.</p>
</blockquote>
<p dir="auto">…although an equally valid question is how to get the highlighted hit text in the <em>Find result</em> window (to be auto-horizontal-scrolled) so when you have really long lines, and the hit is not near the beginning of the lines.  Answer: I don’t think you can.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59421</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59421</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 04 Nov 2020 21:36:23 GMT</pubDate></item><item><title><![CDATA[Reply to put search result right in the middle of screen on Wed, 04 Nov 2020 21:32:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a>, many thanks for your explanation how to move the dialog’s window (I’ve never done it this way, but now I will …).<br />
My concern is the movement of the text: How to set the marked search result into the center (assuming the dialog is not there …)?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59419</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59419</guid><dc:creator><![CDATA[Pfiffikus]]></dc:creator><pubDate>Wed, 04 Nov 2020 21:32:09 GMT</pubDate></item><item><title><![CDATA[Reply to put search result right in the middle of screen on Wed, 04 Nov 2020 21:32:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a></p>
<p dir="auto">I think OP means the location of the hit’s selected text when <em>Find Next</em> is used.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59418</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59418</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 04 Nov 2020 21:32:08 GMT</pubDate></item><item><title><![CDATA[Reply to put search result right in the middle of screen on Wed, 04 Nov 2020 21:20:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/20281">@Pfiffikus</a> ,</p>
<p dir="auto">The <strong>Find result</strong>  window can be either docked or floating.  When docked, it stays on whichever edge you leave it docked to.  When floating, it remembers the last place you put it.  So if it’s not where you like it, put it where you like: it will remember the location, even if you close the results window and re-open it, or even after exiting Notepad++ and coming back.  (When it’s docked at the bottom, it has just about as much width real estate as the main editor window, so there isn’t much mismatch in available vs scrolled width when it’s docked at the bottom.  That’s where I prefer it, in the rare instances I use the Find All In… options)</p>
<p dir="auto">The <strong>Find</strong> (or <strong>Replace</strong>) window also remembers where you last put it.  If you want to re-center that one, you can hit <code>Ctrl-F</code> twice in a row (once to open the <strong>Find</strong> dialog, once to re-center it), or hit <code>Ctrl-H</code> then <code>Ctrl-F</code> (the first opens the dialog in <strong>Replace</strong> mode; the second moves the dialog to the center – unfortunately, <code>Ctrl-H</code> twice in a row will clear the existing search from the <strong>Replace</strong> dialog, but doesn’t center the dialog)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59414</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59414</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 04 Nov 2020 21:20:02 GMT</pubDate></item></channel></rss>