<?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[Find selected text via F3?]]></title><description><![CDATA[<p dir="auto">Hello.<br />
Is there a way configure NPP to search for selected text when F3 is pressed without need open search dialog?<br />
Thank you.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/21919/find-selected-text-via-f3</link><generator>RSS for Node</generator><lastBuildDate>Sat, 06 Jun 2026 13:32:46 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/21919.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 02 Oct 2021 01:41:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Find selected text via F3? on Sun, 03 Oct 2021 17:13:20 GMT]]></title><description><![CDATA[<p dir="auto">Here is a Python script that does exactly as I wanted: if text selected - search for selected text, if nothing selected - execute “find next”</p>
<pre><code class="language-python">if editor.getSelText() == "":
	notepad.menuCommand(MENUCOMMAND.SEARCH_FINDNEXT)
else:
	notepad.menuCommand(MENUCOMMAND.SEARCH_SETANDFINDNEXT)
</code></pre>
<p dir="auto">To bind this to <code>F3</code>, first add the script as Menu item in PythonScript config:</p>
<p dir="auto"><img src="/assets/uploads/files/1633279758632-4d37ed6d-5f17-4313-a646-bcd0235bfffb-image.png" alt="4d37ed6d-5f17-4313-a646-bcd0235bfffb-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Restart NPP, than in <code>Settings -&gt; Shortcut mapper -&gt; Plugin commands</code> search for your script’s filename:</p>
<p dir="auto"><img src="/assets/uploads/files/1633279829029-3726c612-81dd-4f9b-838d-ed8ca2c5060e-image.png" alt="3726c612-81dd-4f9b-838d-ed8ca2c5060e-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/70221</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/70221</guid><dc:creator><![CDATA[vanowm]]></dc:creator><pubDate>Sun, 03 Oct 2021 17:13:20 GMT</pubDate></item><item><title><![CDATA[Reply to Find selected text via F3? on Sat, 02 Oct 2021 19:07:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> Yes, it is almost works as I’d like, except when there is no selection it automatically selects first word next to cursor.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/70214</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/70214</guid><dc:creator><![CDATA[vanowm]]></dc:creator><pubDate>Sat, 02 Oct 2021 19:07:11 GMT</pubDate></item><item><title><![CDATA[Reply to Find selected text via F3? on Sat, 02 Oct 2021 17:00:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vanowm" aria-label="Profile: vanowm">@<bdi>vanowm</bdi></a> ,</p>
<p dir="auto">That’s not the way that the Scintilla IP that Notepad++ uses works.  The key will do one thing – either “Find Next” or “Select and Find Next”.</p>
<p dir="auto">But if you remove the shortcut for Find Next and change Select and Find Next to F3, then it will likely come close to what you want… because when you hit it a second time, whether the old word is still in the buffer for searching, or whether you have selected new text since the last instance of Select and Find Next, when you hit Select and Find Next again, it will usually find what you expect, based on my understanding of your expectations.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/70210</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/70210</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sat, 02 Oct 2021 17:00:01 GMT</pubDate></item><item><title><![CDATA[Reply to Find selected text via F3? on Sat, 02 Oct 2021 16:37:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> Unfortunately it doesn’t seem to allow 2 actions for the same shortcut…I’d like to use F3 for find next and if I select different text and press F3 again it would find the next instance of selected text.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/70209</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/70209</guid><dc:creator><![CDATA[vanowm]]></dc:creator><pubDate>Sat, 02 Oct 2021 16:37:04 GMT</pubDate></item><item><title><![CDATA[Reply to Find selected text via F3? on Sat, 02 Oct 2021 16:14:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vanowm" aria-label="Profile: vanowm">@<bdi>vanowm</bdi></a> ,</p>
<p dir="auto"><a href="https://npp-user-manual.org/docs/preferences/#shortcut-mapper" rel="nofollow ugc"><strong>Settings &gt; Shortcut Mapper</strong></a> allows you to change shortcuts. As <a class="plugin-mentions-user plugin-mentions-a" href="/user/stefan-pendl" aria-label="Profile: Stefan-Pendl">@<bdi>Stefan-Pendl</bdi></a> said, that feature defaults to <code>Ctrl+F3</code></p>
]]></description><link>https://community.notepad-plus-plus.org/post/70207</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/70207</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sat, 02 Oct 2021 16:14:09 GMT</pubDate></item><item><title><![CDATA[Reply to Find selected text via F3? on Sat, 02 Oct 2021 11:54:32 GMT]]></title><description><![CDATA[<p dir="auto">Use [Ctrl]+[F3] to search for selected text.<br />
See all search shortcuts in the search menu of NPP.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/70205</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/70205</guid><dc:creator><![CDATA[Stefan Pendl]]></dc:creator><pubDate>Sat, 02 Oct 2021 11:54:32 GMT</pubDate></item></channel></rss>