<?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[Colored &quot;Find what:&quot; zone]]></title><description><![CDATA[<p dir="auto">Hi, <strong>all</strong>,</p>
<p dir="auto"><strong>Very</strong> often, when making <strong>tests</strong> and building <strong>regular</strong> expressions, I’m very surprised and <strong>annoyed</strong> by the message <strong><code>Find: Can't find the text '..........'</code></strong> … till I realize that <strong>current</strong> search mode is <strong>still</strong> set to <strong><code>Normal</code></strong> !</p>
<p dir="auto">So I thought about <strong>colouring</strong> the <strong><code>Find what:</code></strong> zone, as shown in the picture :</p>
<p dir="auto"><img src="/assets/uploads/files/1616868691305-c5f8b1cb-c269-4849-9872-b44e96010f89-image.png" alt="c5f8b1cb-c269-4849-9872-b44e96010f89-image.png" class=" img-fluid img-markdown" /></p>
<hr />
<p dir="auto"><strong>Before</strong> submitting this improvement, on <strong>GitHub</strong>, what is your feeling about this idea ? <strong>Personally</strong>, I quite like the <strong>second</strong> solution which seems a good <strong>compromise</strong> !</p>
<p dir="auto">This indication would <strong>immediately</strong> inform us about the <strong>current</strong> search mode, for a <strong>possible</strong> change  ;-))</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
<p dir="auto"><strong>P.S.</strong> :</p>
<p dir="auto">I also thought about a <strong>specific</strong> shortcut to open the <strong><code>Find</code></strong> dialog with the <strong><code>Regular expression</code></strong> <strong>automatically</strong> ticked. But, in that case, what about the <strong><code>Replace</code></strong>, <strong><code>Find in Files</code></strong> and <strong><code>Mark</code></strong> dialogs ?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20949/colored-find-what-zone</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Jul 2026 13:22:39 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20949.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 27 Mar 2021 18:12:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Colored &quot;Find what:&quot; zone on Mon, 29 Mar 2021 20:22:59 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-kilborn">@<bdi>Alan-kilborn</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Thank, <strong>alan</strong>, for your <strong>feedback</strong> !</p>
<p dir="auto">Yes, I know that the <strong><code>Pos</code></strong> number, in the <strong>status</strong> bar, refers to <strong>exact</strong> position (starting from <strong><code>0</code></strong>), in <strong>current</strong> file, of the <strong>first</strong> byte of the <strong>sequence</strong> needed to write a character, in a <strong>specific</strong> encoding ! For instance, the <strong><code>UTF-8</code></strong> sequence of the <strong><code>🎷</code></strong> character, representing a <strong>saxophone</strong>, is the <strong>four</strong> bytes sequence ( <strong><code>F0 9F 8E B7</code></strong> ). So, if you insert in a <strong>new</strong> tab, the string <strong><code>A🎷Z0</code></strong> you can <strong>jump</strong>, with the <strong><code>Search &gt; Go to...</code></strong>  feature, when the <strong><code>Offset</code></strong> radio button is <strong>set</strong>, to :</p>
<ul>
<li>
<p dir="auto"><strong><code>Pos 0</code></strong>, right <strong>before</strong> the <strong><code>A</code></strong> letter</p>
</li>
<li>
<p dir="auto"><strong><code>Pos 1</code></strong>, right <strong>before</strong> the <strong><code>🎷</code></strong> letter</p>
</li>
<li>
<p dir="auto"><strong><code>Pos 5</code></strong>, right <strong>before</strong> the <strong><code>Z</code></strong> letter</p>
</li>
<li>
<p dir="auto"><strong><code>Pos 6</code></strong>, right <strong>before</strong> the <strong><code>0</code></strong> digit</p>
</li>
</ul>
<p dir="auto">And, if you try the <strong>offset</strong> <strong><code>2</code></strong>, <strong><code>3</code></strong> or <strong><code>4</code></strong>, which are all <strong>within</strong> the <strong><code>UTF-8</code></strong> encoding of the <strong><code>🎷</code></strong> character, you would just jump to the <strong>next</strong> <strong><code>Z</code></strong> char !</p>
<p dir="auto">This behavior is now <strong>correct</strong>, because I created an <strong>issue</strong> about this problem. Refer to this <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/9101" rel="nofollow ugc">issue</a> !</p>
<hr />
<p dir="auto">Now, I think that you’re <strong>right</strong> regarding your assumption about the <strong>two</strong> bytes used by a char, <strong>over</strong> the <strong><code>BMP</code></strong> : this has really something to do with the <strong>two</strong> bytes of the <strong><code>surrogate</code></strong> mechanism !</p>
<p dir="auto">For instance :</p>
<ul>
<li>
<p dir="auto">The regex to get the <strong><code>🎷</code></strong> character, use its <strong>surrogate</strong> pair <strong><code>\x{D83C}\x{DFB7}</code></strong> ( as we <strong>cannot</strong> use its <strong>complete</strong> hexadecimal code <strong><code>\x{1F3B7}</code></strong> )</p>
</li>
<li>
<p dir="auto">The <strong>general</strong> regex <strong><code>(?-s).[\x{D800}-\x{DFFF}]</code></strong> finds any character <strong>over</strong> the <strong><code>BMP</code></strong> ( <strong>Basic Multilingual Plane</strong> ), so with code-point <strong>over</strong> <strong><code>\x{FFFF}</code></strong></p>
</li>
</ul>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/64492</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64492</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Mon, 29 Mar 2021 20:22:59 GMT</pubDate></item><item><title><![CDATA[Reply to Colored &quot;Find what:&quot; zone on Mon, 29 Mar 2021 18:07:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> said in <a href="/post/64477">Colored "Find what:" zone</a>:</p>
<blockquote>
<p dir="auto">the character point of vue should be preferred to the byte one, like, for instance, the sel : number, in status bar, which refers to characters ( not bytes ) !</p>
</blockquote>
<p dir="auto">And the <code>Pos :</code> number, in the status bar, bothers me somewhat, as it seems intuitively like it should be one character = one “position” change as you cursor over it.  But for multibyte characters it is NOT a change of one.</p>
<p dir="auto">The Pythonscript programmer in me sort of understands this, however.  Meaning how Scintilla deals with “position”.</p>
<blockquote>
<p dir="auto">chars in the BMP, counting for one char and characters outside the BMP, counting for two.</p>
</blockquote>
<p dir="auto">You might understand that way better than me.<br />
The “two” makes me think of “surrogate pairs” but here is where I back off because I don’t know what I’m talking about. :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/64478</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64478</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 29 Mar 2021 18:07:23 GMT</pubDate></item><item><title><![CDATA[Reply to Colored &quot;Find what:&quot; zone on Mon, 29 Mar 2021 18:02:11 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Yes, <strong>Alan</strong>, the <strong><code>character</code></strong> point of vue should be <strong>preferred</strong> to the <strong><code>byte</code></strong> one, like, for instance, the <strong><code>sel :</code></strong> number, in <strong>status</strong> bar, which refers to <strong>characters</strong> ( <strong>not</strong> bytes ) !</p>
<p dir="auto">So, the <strong>second</strong> case should, therfore, be preferred. However, note that, <strong>presently</strong>, there is <strong>still</strong> a difference between chars in the <strong><code>BMP</code></strong>, counting for <strong>one</strong> char and characters outside the <strong><code>BMP</code></strong>, counting for <strong>two</strong>. A bit weird, BTW ?</p>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/64477</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64477</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Mon, 29 Mar 2021 18:02:11 GMT</pubDate></item><item><title><![CDATA[Reply to Colored &quot;Find what:&quot; zone on Mon, 29 Mar 2021 17:46:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a></p>
<p dir="auto">I would say, that if the developers are going to set some kind of limit (and often in software a limit must be set), then for user convenience and understanding, it should be a <em>character</em> limit.  Users don’t understand characters versus bytes (unless those numbers are strictly the same, and with UTF-8 and other encodings they are NOT).</p>
<p dir="auto">And, different methods of entry should of course not alter the amount of data that can be accepted.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/64475</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64475</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 29 Mar 2021 17:46:06 GMT</pubDate></item><item><title><![CDATA[Reply to Colored &quot;Find what:&quot; zone on Mon, 29 Mar 2021 17:39:04 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Yeah, I admit that it’s really <strong>border line</strong> ! Now,  which case seems more <strong>logical</strong> and which case seems more <strong>interesting</strong> ?</p>
<p dir="auto">I would say that :</p>
<ul>
<li>
<p dir="auto">The <strong>first</strong> case seems more <strong>logical</strong> as it considers the <strong>total</strong> amount of <strong>bytes</strong> inserted in the <strong><code>Search what:</code></strong> zone, which is strictly <strong>equal</strong> to the <strong>total</strong> amount of <strong>bytes</strong> of the <strong>current</strong> selection, <strong>before</strong> calling the <strong><code>Find </code></strong> dialog</p>
</li>
<li>
<p dir="auto">Now, the <strong>second</strong> case, <strong>pasting</strong> contents in the <strong><code>Search what:</code></strong> zone, is more <strong>interesting</strong>, of course, because we can search for a <strong>greater</strong> range of characters ( at least, <strong><code>2</code></strong> <strong>times</strong> more ) !</p>
</li>
</ul>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/64474</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64474</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Mon, 29 Mar 2021 17:39:04 GMT</pubDate></item><item><title><![CDATA[Reply to Colored &quot;Find what:&quot; zone on Mon, 29 Mar 2021 12:42:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> said in <a href="/post/64448">Colored "Find what:" zone</a>:</p>
<blockquote>
<p dir="auto">I did a series of tests and I’ve found out an interesting point about the Find What: filling zone !!</p>
</blockquote>
<p dir="auto">This sounds like more than “interesting” behavior.<br />
It sounds like “buggy” behavior.<br />
And it sounds like possibly several bugs.  :-(</p>
]]></description><link>https://community.notepad-plus-plus.org/post/64465</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64465</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 29 Mar 2021 12:42:14 GMT</pubDate></item><item><title><![CDATA[Reply to Colored &quot;Find what:&quot; zone on Mon, 29 Mar 2021 00:25:46 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">I did a series of <strong>tests</strong> and I’ve found out an <strong>interesting</strong> point about the <strong><code>Find What:</code></strong> filling zone !!</p>
<p dir="auto"><strong><code>A</code></strong>) <strong>First</strong> case :</p>
<ul>
<li>
<p dir="auto">Make a normal <strong>selection</strong> of some text or use the <strong>current</strong> selection</p>
</li>
<li>
<p dir="auto">Hit the <strong><code>Ctrl + F</code></strong>, <strong><code>Ctrl+ H</code></strong>, <strong><code>Ctrl + Shift + F</code></strong> or <strong><code>Ctrl + M</code></strong> shortcut. So, this selection usually fills in the <strong><code>Find What:</code></strong> zone, automatically</p>
</li>
</ul>
<p dir="auto">=&gt; In this case, the <strong>maximum</strong> size of this zone is <strong><code>2,046</code></strong> <strong>bytes</strong>, <strong>whatever</strong> the characters stored and the <strong>number</strong> of chars to encode <strong>each</strong> character. For instance, the string <strong><code>Aé▣🎷</code></strong> contains <strong><code>1 + 2 + 3 + 4</code></strong> <strong>bytes</strong>, in an <strong><code>UTF-8</code></strong> file. So, <strong><code>10</code></strong> bytes are inserted in the <strong><code>Find what:</code></strong> zone</p>
<p dir="auto"><strong><code>B</code></strong>) <strong>Second</strong> case :</p>
<ul>
<li>
<p dir="auto"><strong>Copy</strong> the <strong>current</strong> selection in the clipboard, with <strong><code>Ctrl + C</code></strong></p>
</li>
<li>
<p dir="auto"><strong>Cancel</strong> the <strong>current</strong> selection</p>
</li>
<li>
<p dir="auto">Hit the <strong><code>Ctrl + F</code></strong>, <strong><code>Ctrl+ H</code></strong>, <strong><code>Ctrl + Shift + F</code></strong> or <strong><code>Ctrl + M</code></strong> shortcut</p>
</li>
<li>
<p dir="auto"><strong>Delete</strong> the contents of the <strong><code>Find What:</code></strong> zone, <strong>whatever</strong> it is</p>
</li>
<li>
<p dir="auto"><strong>Paste</strong> the contents of the clipboard with <strong><code>Ctrl + V</code></strong>, in the <strong><code>Find what</code></strong> zone</p>
</li>
</ul>
<p dir="auto">=&gt; In that case, the <strong>maximum</strong> size of this zone is <strong><code>2046</code></strong> <strong>chars</strong> and :</p>
<ul>
<li>
<p dir="auto"><strong>Each</strong> character, with <strong>Unicode</strong> code-point <strong><code>&lt;= U+FFFF</code></strong>, stands for <strong>one</strong> character</p>
</li>
<li>
<p dir="auto"><strong>Each</strong> character, with <strong>Unicode</strong> code-point <strong><code>&gt; U+FFFF</code></strong>, stands for <strong>two</strong> characters !</p>
</li>
</ul>
<p dir="auto">So the <strong>same</strong> string <strong><code>Aé▣🎷</code></strong> contains <strong><code>1 + 1 + 1 + 2</code></strong> <strong>chars</strong>. Thus, <strong><code>5</code></strong> <strong>pseudo</strong> characters are inserted in the <strong><code>Find what:</code></strong> zone</p>
<p dir="auto">Remark that this <strong>case</strong> <strong><code>B</code></strong>) occurs, also, for the <strong><code>Replace with:</code></strong> zone, as we need, necessarily, to fill in this zone with <strong>clipboard</strong> contents, anyway ! Therefore, the <strong>maximum</strong> size of the <strong><code>Replace with:</code></strong> zone is <strong><code>2,046</code></strong> characters, too, with the above <strong>distinction</strong> between characters <strong>within</strong> or <strong>outside</strong> the <strong><code>BMP</code></strong> !</p>
<p dir="auto">BTW, we get the <strong>same</strong> results <strong>whatever</strong> the current search <strong>mode</strong> used !</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
<p dir="auto"><strong>P.S. :</strong></p>
<p dir="auto">For a <strong>quick</strong> test, note the <strong>differences</strong> between cases <strong><code>A</code></strong>) and <strong><code>B</code></strong>) with the <strong>one</strong>-line text of the <strong><code>▣</code></strong> character ( <strong><code>U+25A3</code></strong> ), below :</p>
<pre><code class="language-diff">▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣▣
</code></pre>
<p dir="auto"><strong>First</strong> case :</p>
<ul>
<li>
<p dir="auto">Select <strong>all</strong> the <strong>above</strong> text ( <strong><code>2,109</code></strong>  chars )</p>
</li>
<li>
<p dir="auto">Open the <strong><code>Find</code></strong> dialog ( The <strong><code>Fins what:</code></strong> zone is filled in, <strong>automatically</strong> )</p>
</li>
<li>
<p dir="auto">Tick the <strong><code>Wrap around</code></strong> option</p>
</li>
<li>
<p dir="auto">Click <strong>once</strong> only on the <strong><code>Find Next</code></strong> button</p>
</li>
</ul>
<p dir="auto">=&gt; <strong><code>682</code></strong> characters <strong><code>▣</code></strong>  are <strong>selected</strong> ( each char is coded with <strong>three</strong> bytes <strong><code>E2 96 A3</code></strong> =&gt; <strong><code>682 * 3 = 2,046</code></strong> <strong>bytes</strong> )</p>
<p dir="auto"><strong>Second</strong> case :</p>
<ul>
<li>
<p dir="auto">Select again <strong>all</strong> this text ( <strong><code>2,109</code></strong>  chars )</p>
</li>
<li>
<p dir="auto">Hit <strong><code>Ctrl + C</code></strong></p>
</li>
<li>
<p dir="auto"><strong>Cancel</strong> the selection</p>
</li>
<li>
<p dir="auto">Open the <strong><code>Find</code></strong> dialog</p>
</li>
<li>
<p dir="auto"><strong>Delete</strong> anything in the <strong><code>Find what:</code></strong> zone</p>
</li>
<li>
<p dir="auto"><strong>Paste</strong> the clipboard contents with <strong><code>Ctrl + V</code></strong>, in the <strong><code>Find what:</code></strong> zone</p>
</li>
<li>
<p dir="auto">Tick the <strong><code>Wrap around</code></strong> option</p>
</li>
<li>
<p dir="auto">Click on the <strong><code>Find Next</code></strong> button</p>
</li>
</ul>
<p dir="auto">=&gt; <strong><code>2,046</code></strong> characters <strong><code>▣</code></strong>  are <strong>selected</strong> ( <strong>each</strong> char counts for <strong>itself</strong>, as its code-point is <strong><code>&lt;= U+FFFF</code></strong> )</p>
]]></description><link>https://community.notepad-plus-plus.org/post/64448</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64448</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Mon, 29 Mar 2021 00:25:46 GMT</pubDate></item><item><title><![CDATA[Reply to Colored &quot;Find what:&quot; zone on Sun, 28 Mar 2021 13:45:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> said in <a href="/post/64443">Colored "Find what:" zone</a>:</p>
<blockquote>
<p dir="auto">I think it actually has more value to truly BE a button, or, more accurately, a horizontally-narrow dropdown,</p>
</blockquote>
<p dir="auto">One thing that my earlier proposal does NOT consider, is changing modes via keyboard.<br />
I don’t currently have a great idea for this, without increasing the size on the UI.<br />
But probably it is all pointless anyway, as Find UI changes are rarely considered by the devs.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/64446</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64446</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 28 Mar 2021 13:45:08 GMT</pubDate></item><item><title><![CDATA[Reply to Colored &quot;Find what:&quot; zone on Sun, 28 Mar 2021 13:41:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> said in <a href="/post/64444">Colored "Find what:" zone</a>:</p>
<blockquote>
<p dir="auto">Regarding the Mark style feature, unfortunately, it cannot take in account a range of more of 2,047 characters as the Find what: zone</p>
</blockquote>
<p dir="auto">Well, I had not encountered this before (having not attempted such a large “styling”) but it does not surprise me because clearly “styling” is going to involve Notepad++'s internal find routines to do its job.  And those, as we know, have this 2047 limit.</p>
<p dir="auto">But really, it isn’t much of a limitation to what we’re discussing (your usage when doing before/after regex replacement “compares”), right?  Perhaps you were thinking that the “styling” method may be better because it might not have this limitation?</p>
<p dir="auto">As an alternative for such a mechanism for such compares, what I do is to use an independent compare utility.  The utility can do quick-to-invoke compares on the last two things copied to the clipboard.  Thus it is perfect for your described application.  Everyone touts the N++ Compare plugin, but I find a separate utility outside of N++, with possibly some hooks “into” N++ (via PythonScript) to be even more useful.  Nothing against N++'s Compare plugin, however.</p>
<p dir="auto">But, back to the 2047 (or is it 2046? I can’t remember) limit…</p>
<p dir="auto">Is it truly 2047 <em>characters</em>, or is it 2047 <em>bytes</em>?  Also a “can’t remember” for me.  If it is “bytes” then, worst case for UTF-8 data, it might be as little as 2047-divided-by-4, or roughly 512 characters.</p>
<p dir="auto">But even if it is characters, is such a limit “too small” for today’s conditions?<br />
Maybe lobbying the N++ devs for an increase in this number is a reasonable thing to do?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/64445</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64445</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 28 Mar 2021 13:41:59 GMT</pubDate></item><item><title><![CDATA[Reply to Colored &quot;Find what:&quot; zone on Sun, 28 Mar 2021 13:34:24 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Regarding the <strong><code>Mark style</code></strong> feature, unfortunately, it <strong>cannot</strong> take in account a <strong>range</strong> of more of <strong><code>2,047</code></strong> characters too, as the <strong><code>Find what:</code></strong> zone :-(</p>
<p dir="auto">Just <strong>duplicate</strong> a zone of, let say, <strong><code>5,000</code></strong> characters or so ! I had <strong>never</strong> done such a test before ;-))</p>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/64444</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64444</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 28 Mar 2021 13:34:24 GMT</pubDate></item><item><title><![CDATA[Reply to Colored &quot;Find what:&quot; zone on Sun, 28 Mar 2021 13:07:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> said in <a href="/post/64442">Colored "Find what:" zone</a>:</p>
<blockquote>
<p dir="auto">just pay attention to the small box, colored or not, between the mention Find what: and the field where you type in your search regex. This box  would not be a button at all</p>
</blockquote>
<p dir="auto">I think it actually has more value to truly <em>BE</em> a button, or, more accurately, a horizontally-narrow dropdown, where one could select, for example:</p>
<ul>
<li><code>N</code> for normal mode search</li>
<li><code>E</code> for extended mode search</li>
<li><code>R</code> for regular expression mode search (with . does not match newline)</li>
<li><code>R.</code> for regular expression mode search (with . matches newline)</li>
</ul>
<p dir="auto">Of course, when dropped, it could appear like this for maximum user help:</p>
<ul>
<li><code>N : Normal Search Mode</code></li>
<li><code>E : Extended Search Mode</code></li>
<li><code>R : Regular Expression Search Mode (. does not match newline)</code></li>
<li><code>R. : Regular Expression Search Mode (. matches newline)</code></li>
</ul>
<p dir="auto">With such a change, the <code>Search Mode</code> box near the bottom of the window could be eliminated, making room for future searching goodie options!  :-)</p>
<p dir="auto">Most users could just ignore it, and if it is small that is easy to do (just leave it set at <code>N</code>).  But for users that switch, something small and to the left of the text to find (Guy’s idea!) seems definitely worth it.</p>
<p dir="auto">I can’t believe I would get excited about a <em>Find</em> UI change that I know devs won’t like – because they don’t like any of these types of things.</p>
<blockquote>
<p dir="auto">I did not noticed that you spoke about the five Mark Style # ( with style 2 in your picture ). Indeed, I do like this solution, too !</p>
</blockquote>
<p dir="auto">I suppose I had forgotten that “styling” is controlled by match-case and match-whole-word settings.  I think maybe that makes my suggested solution somewhat less great than I first thought.  :-(</p>
<p dir="auto">Somewhat like <a class="plugin-mentions-user plugin-mentions-a" href="/user/astrosofista" aria-label="Profile: astrosofista">@<bdi>astrosofista</bdi></a> , I use automation to help keep these boxes clear when invoking a new Find, so I think that’s why I forgot.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/64443</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64443</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 28 Mar 2021 13:07:10 GMT</pubDate></item><item><title><![CDATA[Reply to Colored &quot;Find what:&quot; zone on Sun, 28 Mar 2021 12:43:30 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/mere-human" aria-label="Profile: mere-human">@<bdi>mere-human</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/astrosofista" aria-label="Profile: astrosofista">@<bdi>astrosofista</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">OMG, I must have been very <strong>tired</strong> last night and had my head <strong>elsewhere</strong>. Let’s start again :</p>
<ul>
<li>First, in my picture of my <strong>previous</strong> post, just pay attention to the <strong>small box</strong>, colored or not, between the mention <strong><code>Find what:</code></strong> and the <strong>field</strong> where you type in your <strong>search</strong> regex. This box  would <strong>not</strong> be a button at all , just a <strong>visual</strong> and/or <strong>colored</strong> mark, located <strong>near</strong> the zone to fill in, which would help us to remember the <strong>current</strong> search mode. ( Think of it as the <strong>colored</strong> boxes of the options <strong><code>Search &gt; Mark All</code></strong> and <strong><code>Search &gt; Unmark All</code></strong>, with, in addition, the <strong>uppercase</strong> <strong><code>N</code></strong>, <strong><code>E</code></strong> or <strong><code>R</code></strong> letter, inside )</li>
</ul>
<hr />
<ul>
<li>
<p dir="auto">I <strong>did</strong> understand that this <strong>small box</strong> would be <strong>updated</strong>, to the <strong>present</strong> search mode, by some new <strong>program code</strong> (<strong>not</strong> by user), when :</p>
<ul>
<li>
<p dir="auto">You open one of the <strong><code>Find</code></strong> dialogs</p>
</li>
<li>
<p dir="auto">You <strong>manually</strong> click on a <strong>radio</strong> button of the <strong><code>Search mode</code></strong> section</p>
</li>
</ul>
</li>
</ul>
<hr />
<ul>
<li>
<p dir="auto">Now, regarding your <strong>Mark</strong> idea, I’m <strong>terribly</strong> sorry ! Indeed, I did <strong>not</strong> noticed that you spoke about the <strong>five</strong> <strong><code>Mark Style #</code></strong> ( with <strong><code>style 2</code></strong> in your picture ). Indeed, I <strong>do</strong> like this solution, too ! But you’re right : when using the <strong><code>Search &gt; Mark All</code></strong> option, the search is done with <strong>current</strong> state of the <strong><code>Match Whole word only</code></strong> and <strong><code>Match case</code></strong> options. So, in order to detect strictly <strong>identical</strong> areas of text, I suppose that :</p>
<ul>
<li>
<p dir="auto">The <strong><code>Match Whole word only</code></strong> option should be <strong>unset</strong></p>
</li>
<li>
<p dir="auto">The <strong><code>Match case</code></strong> option should be <strong>set</strong></p>
</li>
</ul>
</li>
</ul>
<hr />
<p dir="auto">Now, in short, I finally think that it would <strong>not</strong> be valuable to submit such idea, regarding the <a class="plugin-mentions-user plugin-mentions-a" href="/user/mere-human" aria-label="Profile: mere-human">@<bdi>mere-human</bdi></a>’s and <a class="plugin-mentions-user plugin-mentions-a" href="/user/astrosofista" aria-label="Profile: Astrosofista">@<bdi>Astrosofista</bdi></a>’s workarounds and the <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a>’s suggestion of the <strong><code>Mark Style</code></strong> feature !</p>
<p dir="auto">And, anyway, I suppose that, for at least <strong>April</strong>, I will remember to <strong>check</strong> current search <strong>mode</strong>, just because I’ve had written <strong>all</strong> this stuff ;-))</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/64442</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64442</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 28 Mar 2021 12:43:30 GMT</pubDate></item><item><title><![CDATA[Reply to Colored &quot;Find what:&quot; zone on Sun, 28 Mar 2021 01:08:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mere-human" aria-label="Profile: mere-human">@<bdi>mere-human</bdi></a> said in <a href="/post/64438">Colored "Find what:" zone</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> said in <a href="/post/64429">Colored "Find what:" zone</a>:</p>
<blockquote>
<p dir="auto">I also thought about a specific shortcut to open the Find dialog with the Regular expression automatically ticked. But, in that case, what about the Replace, Find in Files and Mark dialogs ?</p>
</blockquote>
<p dir="auto">How about opening the needed search dialog (e.g. <em>Ctrl + F</em>) and then pressing <em>Alt + G</em> to switch to the Regex mode?</p>
</blockquote>
<p dir="auto">Since sometimes the same thing happened to me as <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> tells, I solved the issue with a script. I couldn’t use <code>Alt + G</code>, as you suggested, because I usually switch between two localizations, so I had to use another approach. <em>Using RegEx, of course!</em></p>
<p dir="auto">The demo shows the English version of this AutoHotkey script, which can be easily adapted to other languages by adding or replacing the corresponding terms:</p>
<pre><code class="language-z">SetTitleMatchMode, RegEx

~^f::
~^h::
~^m::
WinWaitActive, Find|Replace|Mark 
ControlGet, status, Checked,, button18, Find|Replace|Mark
If (status = 0) {
	SetControlDelay -1
	ControlClick, button18, A ;checks regular expression
}
return
</code></pre>
<p dir="auto">Take care and have fun!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/64441</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64441</guid><dc:creator><![CDATA[astrosofista]]></dc:creator><pubDate>Sun, 28 Mar 2021 01:08:39 GMT</pubDate></item><item><title><![CDATA[Reply to Colored &quot;Find what:&quot; zone on Sat, 27 Mar 2021 22:55:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> said in <a href="/post/64439">Colored "Find what:" zone</a>:</p>
<p dir="auto">I don’t think that this is your day for understanding my posts, or maybe I’m just not clear enough.</p>
<p dir="auto">When I said:</p>
<blockquote>
<p dir="auto">Why not just change the text to the left? Instead of “Find what”, how about “Find Regex” or “Find Ext”</p>
</blockquote>
<p dir="auto">I didn’t mean change this <em>as a user</em>; just like your colors feature, having the text change would be done <em>by the developers</em>, when a mode is selected.  Changing the text so that it is constant as a user can do is pointless here.  Or maybe I misunderstand you as well.</p>
<p dir="auto">But, having something much closer to the find box that shows the mode is better than at the bottom, no?</p>
<p dir="auto">When I said:</p>
<blockquote>
<p dir="auto">Why not use the Search &gt; Mark All feature for that?</p>
</blockquote>
<p dir="auto">I think you interpreted that as <em>Search</em> &gt; <em>Mark…</em> instead, despite my orange (not red) coloring in my screenshot.  The <em>Mark All</em> commands always work in “normal” mode on literal text; no regexes involved.  (I think I remember something about a tie-in to <em>Match case</em> however?)</p>
<blockquote>
<p dir="auto">How about opening the needed search dialog (e.g. Ctrl + F) and then pressing Alt + G to switch to the Regex mode?</p>
</blockquote>
<p dir="auto">This is doable, but quite awkward.  If it was Ctrl+f, Ctrl+g it would flow much better.  But it’s not.</p>
<blockquote>
<p dir="auto">A last idea, in the picture below :</p>
</blockquote>
<p dir="auto">I’m not understanding that picture fully.  Does it suggest to move search-mode into a one-letter dropdown, between the <em>Find what</em> text and the box itself?  I don’t think that’s what you had in mind, but I kind of like that. :-)</p>
<p dir="auto">If a user didn’t know what those N/E/R were they could hover and a speech callout could explain it.</p>
<p dir="auto">But overall, sorry, no, I for one wouldn’t be on-board with the “colors” idea.  But not everyone agrees with everyone else all the time (surely this site has reinforced that idea!).</p>
<p dir="auto">It must be “the week” for people to come up with ideas to change the <em>Find</em> windows – right Terry? :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/64440</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64440</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 27 Mar 2021 22:55:54 GMT</pubDate></item><item><title><![CDATA[Reply to Colored &quot;Find what:&quot; zone on Sat, 27 Mar 2021 21:28:13 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/mere-human" aria-label="Profile: mere-human">@<bdi>mere-human</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">So, you don’t fancy the <strong>color-coding</strong> feature ?!</p>
<p dir="auto">You said :</p>
<blockquote>
<p dir="auto">Why not just change the text to the left? Instead of “Find what”, how about “Find Regex” or “Find Ext”</p>
</blockquote>
<p dir="auto">Well, one might say, with reason, just give a <strong>quick</strong> look to the search <strong>mode</strong> area, at <strong>bottom</strong> of dialogs !! I don’t think that  would better noticed the <strong>change</strong> of the field :-(</p>
<p dir="auto">You also said :</p>
<blockquote>
<p dir="auto">but I find that I accidentally search with “whole word” or “match case” on just as often as the wrong mode</p>
</blockquote>
<p dir="auto">You score one point, there !</p>
<p dir="auto">And :</p>
<blockquote>
<p dir="auto">If I want normal, I just pop a quick \Q on the front of my field</p>
</blockquote>
<p dir="auto">I do use this form, sometimes, if I want to search, for instance, a text like <strong><code>/* this a ( simple ) test of the \Q syntax ! */</code></strong> in <strong>regex</strong> mode ! However for <strong>multi-lines</strong> blocks of text, I prefer the <strong><code>Ctrl + F3</code></strong> way. But, anyway, I need to know the <strong>current</strong> search mode !</p>
<p dir="auto">Finally, you added :</p>
<blockquote>
<p dir="auto">Why not use the Search &gt; Mark All feature for that?</p>
</blockquote>
<p dir="auto">As I’ve just said, above, you must be sure that the <strong>current</strong> search mode is <strong><code>Normal</code></strong> before running the <strong><code>Mark</code></strong> process !</p>
<p dir="auto">So a <strong>general</strong> solution seems not <strong>easy</strong> ! Many times, when building regexes, I’m obviously not <strong><code>100%</code></strong> sure that it’s a <strong>right</strong> one. So, when I got a <strong><code>Can't find</code></strong> message I know that my try is <strong>syntactically</strong> correct but <strong>not</strong> exact and <strong>five</strong> minutes may pass <strong>before</strong> I realize that I am, stupidly, in <strong><code>Normal</code></strong> mode :-(</p>
<p dir="auto">Now, a solution could be to <strong>slightly</strong> change the look of the <strong><code>Find</code></strong> and <strong><code>Replace</code></strong> buttons, according to the <strong>current</strong> search <strong>mode</strong></p>
<p dir="auto">A <strong>last</strong> idea, in the picture below :</p>
<p dir="auto"><img src="/assets/uploads/files/1616879563250-46a3fd2a-9c14-4692-b2bc-21df3c21504f-image.png" alt="46a3fd2a-9c14-4692-b2bc-21df3c21504f-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mere-human" aria-label="Profile: mere-human">@<bdi>mere-human</bdi></a> :</p>
<p dir="auto">Oh… yes, really <strong>interesting</strong> ! I’ve <strong>never</strong> used it before but I suppose, as a <strong>shortcuts-maniac</strong> person, that I will get used to, very <strong>easily</strong> ;-))</p>
<p dir="auto">In addition, the <strong><code>G</code></strong>  <strong>key</strong> just follows the <strong><code>F</code></strong> <strong>key</strong>, on <strong>any</strong> keyboard, all over the world !</p>
]]></description><link>https://community.notepad-plus-plus.org/post/64439</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64439</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 27 Mar 2021 21:28:13 GMT</pubDate></item><item><title><![CDATA[Reply to Colored &quot;Find what:&quot; zone on Sat, 27 Mar 2021 20:47:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> said in <a href="/post/64429">Colored "Find what:" zone</a>:</p>
<blockquote>
<p dir="auto">I also thought about a specific shortcut to open the Find dialog with the Regular expression automatically ticked. But, in that case, what about the Replace, Find in Files and Mark dialogs ?</p>
</blockquote>
<p dir="auto">How about opening the needed search dialog (e.g. <em>Ctrl + F</em>) and then pressing <em>Alt + G</em> to switch to the Regex mode?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/64438</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64438</guid><dc:creator><![CDATA[mere-human]]></dc:creator><pubDate>Sat, 27 Mar 2021 20:47:27 GMT</pubDate></item><item><title><![CDATA[Reply to Colored &quot;Find what:&quot; zone on Sat, 27 Mar 2021 19:33:32 GMT]]></title><description><![CDATA[<p dir="auto">I don’t like color-coding these fields.  One reason is that it is not obvious what the colors are for.  I suppose experimentation by a user would reveal it.</p>
<p dir="auto">I would much rather colors be used for an error condition (red) a non-error condition (green) or a warning condition (yellow).  Not sure what these could mean in this context, but that’s what I think of for colors.</p>
<p dir="auto">Why not just change the text to the left?  Instead of “Find what”, how about “Find Regex” or “Find Ext” when in those modes.  This moves the info closer to point-of-use.</p>
<p dir="auto">I do agree that it can be a bit tedious when you accidentally search in the wrong mode, but I find that I accidentally search with “whole word” or “match case” on just as often as the wrong mode.  So I think maybe the answer is pay closer attention to the UI, but that may not be a great answer.</p>
<p dir="auto">Like Peter, I stay in regex mode most of the time.  If I want normal, I just pop a quick <code>\Q</code> on the front of my field (no need for a trailing <code>\E</code>).  Although still in regex mode technically, it is effectively normal mode.</p>
<p dir="auto">And “Extended” mode – I say “bah! What good is that?”</p>
<blockquote>
<p dir="auto">I also use the Normal mode when comparing two text zones which should be identical …</p>
</blockquote>
<p dir="auto">Why not use the <em>Search</em> &gt; <em>Mark All</em> feature for that?<br />
If 2+ sections are identical, they instantly get the same colorization.<br />
From this:</p>
<p dir="auto"><img src="/assets/uploads/files/1616873511040-58ca9126-d51d-4b46-a078-71b27047d70f-image.png" alt="58ca9126-d51d-4b46-a078-71b27047d70f-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">To this at the press of one keycombo:</p>
<p dir="auto"><img src="/assets/uploads/files/1616873542185-681c2c1c-5b8b-4d95-90c7-cf8c4e7c342c-image.png" alt="681c2c1c-5b8b-4d95-90c7-cf8c4e7c342c-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/64433</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64433</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 27 Mar 2021 19:33:32 GMT</pubDate></item><item><title><![CDATA[Reply to Colored &quot;Find what:&quot; zone on Sat, 27 Mar 2021 19:06:32 GMT]]></title><description><![CDATA[<p dir="auto">Hello <strong>All</strong>,</p>
<p dir="auto">The <strong>Peter</strong>’s advices are quite <strong>judicious</strong> ! Indeed :</p>
<ul>
<li>
<p dir="auto"><strong>Less</strong> colors are used than with my solution</p>
</li>
<li>
<p dir="auto">For [ noob ] people, the <strong><code>Normal</code></strong> mode would stay <strong>unchanged</strong></p>
</li>
<li>
<p dir="auto">For people more involved with <strong>regexes</strong>, the color <strong>green</strong> is definitively more <strong>relaxing</strong> than any kind of <strong>red</strong>, anyway !</p>
</li>
</ul>
<hr />
<p dir="auto">So, I updated my <strong>previous</strong> picture, as below :</p>
<p dir="auto"><img src="/assets/uploads/files/1616870781912-9b618b36-8a9f-407a-8522-ebf78a845307-image.png" alt="9b618b36-8a9f-407a-8522-ebf78a845307-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Best regards,</p>
<p dir="auto">guy038</p>
<p dir="auto"><strong>P.S</strong> :</p>
<p dir="auto">Of course, <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a>, like you and many others, I <strong>mainly</strong> use the <strong><code>Regular expression</code></strong> mode. However I also use the <strong><code>Normal</code></strong> mode when <strong>comparing</strong> two text zones which should be <strong>identical</strong> … in the end ! So I <strong>select</strong> the concerned zone, even on <strong>multiple</strong> lines, choose the <strong><code>Normal</code></strong> mode and tick the <strong><code>Match case</code></strong> option.</p>
<p dir="auto">I, then, hit the <strong><code>Ctrl + F3</code></strong> shortcut and any <strong>other selected</strong> area is, necessarily, strictly <strong>identical</strong> to the <strong>initial</strong> one. I use this method when I want to compare the <strong>expected</strong> result of an <strong><code>OP</code></strong> and the results obtained after running a <strong>specific</strong> S/R !</p>
]]></description><link>https://community.notepad-plus-plus.org/post/64432</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64432</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 27 Mar 2021 19:06:32 GMT</pubDate></item><item><title><![CDATA[Reply to Colored &quot;Find what:&quot; zone on Sat, 27 Mar 2021 18:25:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> ,</p>
<p dir="auto">The only time I don’t have regex mode enabled is when I do a fresh unzip to help someone on the forum.  And given that many of those are with old versions of Notepad++, a new feature wouldn’t help me. ;-)</p>
<p dir="auto">That said, I would not mind some immediate indicator, like the colors you showed. Though I might suggest that <strong>Normal</strong> should be white (ie, the way it is now), <strong>Extended</strong> be one of the yellows you show, and <strong>Regex</strong> be the green; that way, it would tell us power users “green means you are in the right mode, yellow means you are in a weird mode, and boring white means default”.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/64431</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64431</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sat, 27 Mar 2021 18:25:20 GMT</pubDate></item></channel></rss>