<?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 All Occurrences Macro]]></title><description><![CDATA[<p dir="auto">I have a find all macro that works with hardcoded search string (TODO) but is there a way to create a macro that does find all for the current highlighted word?</p>
<p dir="auto">This works for hardcoded “TODO …”:</p>
<pre><code>        &lt;Macro name="TODO Find All" Ctrl="no" Alt="no" Shift="no" Key="0"&gt;
            &lt;Action type="3" message="1700" wParam="0" lParam="0" sParam="" /&gt;
            &lt;Action type="3" message="1601" wParam="0" lParam="0" sParam="TODO:|BUG:|FIX:|REFACTOR:|DONE:|INFO:" /&gt;
            &lt;Action type="3" message="1625" wParam="0" lParam="2" sParam="" /&gt;
            &lt;Action type="3" message="1702" wParam="0" lParam="2" sParam="" /&gt;
            &lt;Action type="3" message="1701" wParam="0" lParam="1636" sParam="" /&gt;
        &lt;/Macro&gt;

</code></pre>
<p dir="auto">This does <em>not</em> work for the current word:</p>
<pre><code>        &lt;Macro name="TODO Find All" Ctrl="no" Alt="no" Shift="no" Key="0"&gt;
            &lt;Action type="3" message="1700" wParam="0" lParam="0" sParam="" /&gt;
            &lt;Action type="3" message="1601" wParam="0" lParam="0" sParam="$(CURRENT_WORD)" /&gt;
            &lt;Action type="3" message="1625" wParam="0" lParam="2" sParam="" /&gt;
            &lt;Action type="3" message="1702" wParam="0" lParam="2" sParam="" /&gt;
            &lt;Action type="3" message="1701" wParam="0" lParam="1636" sParam="" /&gt;
        &lt;/Macro&gt;

</code></pre>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/18616/find-all-occurrences-macro</link><generator>RSS for Node</generator><lastBuildDate>Fri, 06 Nov 2026 19:53:55 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/18616.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 13 Dec 2019 01:15:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Find All Occurrences Macro on Fri, 13 Dec 2019 12:20: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/49185">Find All Occurrences Macro</a>:</p>
<blockquote>
<p dir="auto">Why don’t you use your macro, via its shortcut ( search of TODO:|BUG:|FIX:|REFACTOR:|DONE:|INFO: ) to get one instance of the title, presently needed, and then, simply use the Ctrl + F3 or Ctrl + Shift + F3 shortcuts to move around to the next or previous similar title ?</p>
</blockquote>
<p dir="auto">Thanks, and not to be rude, but that kind of defeats the purpose.  Maybe I should have explained a little better.  When I mean “Find all Occurrences” I want the search results window to pop up with all occurrences the same as when I:</p>
<ol>
<li>highlight a word</li>
<li>press CTRL-F</li>
<li>press “Find All in Current Document”</li>
</ol>
<p dir="auto">By making this a macro, I can then add it to the context menu and then a right-click on any word will have a click away, “Find All Occurrences” which will open the clickable search results window.</p>
<p dir="auto">Hope that better explains, seems it may not be possible though.  Shame the $(CURRENT_WORD) variable can be used in the shortcuts.xml file for the &lt;UserDefinedCommands&gt; commands section, but not the &lt;macros&gt; section.</p>
<p dir="auto">Cheers.,</p>
]]></description><link>https://community.notepad-plus-plus.org/post/49187</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/49187</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Fri, 13 Dec 2019 12:20:59 GMT</pubDate></item><item><title><![CDATA[Reply to Find All Occurrences Macro on Fri, 13 Dec 2019 11:26:43 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-vincent" aria-label="Profile: michael-vincent">@<bdi>michael-vincent</bdi></a>, <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"><strong>Michael</strong>, may be I’m missing something <strong>obvious</strong> !</p>
<p dir="auto">Why don’t you use your macro, via its <strong>shortcut</strong> ( search of <strong><code>TODO:|BUG:|FIX:|REFACTOR:|DONE:|INFO:</code></strong> ) to get one instance of the <strong>title</strong>, presently <strong>needed</strong>, and then, simply use the <strong><code>Ctrl + F3</code></strong> or <strong><code>Ctrl + Shift + F3</code></strong> shortcuts to move around to the <strong>next</strong> or <strong>previous</strong> <strong>similar</strong> title ?</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/49185</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/49185</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 13 Dec 2019 11:26:43 GMT</pubDate></item><item><title><![CDATA[Reply to Find All Occurrences Macro on Fri, 13 Dec 2019 03:39:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-vincent" aria-label="Profile: Michael-Vincent">@<bdi>Michael-Vincent</bdi></a> said in <a href="/post/49179">Find All Occurrences Macro</a>:</p>
<blockquote>
<p dir="auto">is there a way to create a macro that does find all for the current highlighted word?</p>
</blockquote>
<p dir="auto">Sadly, no.  Even more useful would be something like <code>$(PROMPT)</code> which would put up an input box for a user search term to be supplied.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/49180</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/49180</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 13 Dec 2019 03:39:59 GMT</pubDate></item></channel></rss>