<?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[Remove Consecutive Duplicate Lines - How to add in Shortcut mapper?]]></title><description><![CDATA[<p dir="auto">Remove Consecutive Duplicate Lines - How to add in Shortcut mapper?</p>
<p dir="auto">How do I assign a keyboard shortcut to the “Line Operations” menu option for “Remove Consecutive Duplicate Lines” in Notepad++?</p>
<p dir="auto">I would like to add a keyboard shortcut for this built-in np++ menu command but I don’t see it as an option listed under the Shortcut Mapper (not even scintilla commands).</p>
<p dir="auto">It’s listed as “IDM_EDIT_REMOVE_DUP_LINES” in <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/src/menuCmdID.h" rel="nofollow ugc">https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/src/menuCmdID.h</a></p>
<p dir="auto">I’m thinking this is a bug.  How would I go about adding it as an Internal Command to Keyboard shortcuts in shortcuts.xml as described in the link below?<br />
<a href="http://docs.notepad-plus-plus.org/index.php/Editing_Configuration_Files#.3CInternalCommands.3E" rel="nofollow ugc">http://docs.notepad-plus-plus.org/index.php/Editing_Configuration_Files#.3CInternalCommands.3E</a></p>
<p dir="auto">I have limited programming abilities and previously was fond of textfx for sort &amp; dedupe before x64 crippled it.</p>
<p dir="auto">Thank you</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/17878/remove-consecutive-duplicate-lines-how-to-add-in-shortcut-mapper</link><generator>RSS for Node</generator><lastBuildDate>Sun, 10 May 2026 02:35:50 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/17878.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 26 Jun 2019 20:58:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Remove Consecutive Duplicate Lines - How to add in Shortcut mapper? on Tue, 02 Jun 2020 19:09:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mk-digital" aria-label="Profile: MK-Digital">@<bdi>MK-Digital</bdi></a><br />
Whether it is in appdata or not depends on how you installed npp and<br />
whether you are using the <a href="https://npp-user-manual.org/docs/config-files/#other-configuration-files" rel="nofollow ugc">doLocalConf.xml</a> or not.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54545</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54545</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Tue, 02 Jun 2020 19:09:46 GMT</pubDate></item><item><title><![CDATA[Reply to Remove Consecutive Duplicate Lines - How to add in Shortcut mapper? on Tue, 02 Jun 2020 09:38:16 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> Just to clarify my error was that <code>shortcuts.xml</code> is in the program folder, but the one that needs editing is the in windows is the user App Data  <code>Drive:/Users/username/AppData/Roaming/Notepad++</code></p>
<p dir="auto">Taking your suggestion though, I just recorded a macro using the recorder and that worked perfect. The second line was the action mentioned.</p>
<pre><code>    &lt;Macro name="Sort and Delete" Ctrl="no" Alt="no" Shift="yes" Key="112"&gt;
        &lt;Action type="2" message="0" wParam="42059" lParam="0" sParam="" /&gt;
        &lt;Action type="2" message="0" wParam="42077" lParam="0" sParam="" /&gt;
    &lt;/Macro&gt;
</code></pre>
<p dir="auto">Just if anyone runs into the same difficulty, as this command I could not find to map. Thanks to <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> for the solution.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54537</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54537</guid><dc:creator><![CDATA[MK Digital]]></dc:creator><pubDate>Tue, 02 Jun 2020 09:38:16 GMT</pubDate></item><item><title><![CDATA[Reply to Remove Consecutive Duplicate Lines - How to add in Shortcut mapper? on Sun, 30 Jun 2019 20:13:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/eltrkbrd" aria-label="Profile: eltrkbrd">@<bdi>eltrkbrd</bdi></a></p>
<p dir="auto">Using Notepad++ 7.7.1 I was able to custom-add a macro to my <code>shortcuts.xml</code> like so:</p>
<pre><code>    &lt;Macro name="test" Ctrl="no" Alt="no" Shift="no" Key="0"&gt;
        &lt;Action type="2" message="0" wParam="42077" lParam="0" sParam="" /&gt;
    &lt;/Macro&gt;
</code></pre>
<p dir="auto">I didn’t bind it to a keycombo, but when I ran it from the Macro menu, it worked just fine to delete the consecutive duplicate lines.  Thus, it should have no problem when given a keycombo and then run from that keycombo.</p>
<p dir="auto">I see that you defined your try at it a bit differently–why don’t you give my way a try?  Note: Be sure to put it in the <code>Macros</code> section.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/45007</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/45007</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 30 Jun 2019 20:13:05 GMT</pubDate></item><item><title><![CDATA[Reply to Remove Consecutive Duplicate Lines - How to add in Shortcut mapper? on Sun, 30 Jun 2019 15:04:13 GMT]]></title><description><![CDATA[<p dir="auto">Shortcut mapper bug still unresolved; however, as a work around I found the NppMenuSearch plugin to be very useful.</p>
<p dir="auto">For those interested, it can be downloaded here:<br />
<a href="https://github.com/peter-frentrup/NppMenuSearch" rel="nofollow ugc">https://github.com/peter-frentrup/NppMenuSearch</a></p>
<p dir="auto">It’s a single click workaround but unfortunately doesn’t solve the problem with mapping a keyboard shortcut to the remove duplicate lines internal command.</p>
<p dir="auto">Any ideas?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/45006</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/45006</guid><dc:creator><![CDATA[eltrkbrd]]></dc:creator><pubDate>Sun, 30 Jun 2019 15:04:13 GMT</pubDate></item><item><title><![CDATA[Reply to Remove Consecutive Duplicate Lines - How to add in Shortcut mapper? on Sat, 29 Jun 2019 03:39:07 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><br />
Note, ID mapped out to Ctrl + Shift + A.  I edited shortcut.xml and changed the ID to 42077 from 42059 as found in <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/installer/nativeLang/english.xml" rel="nofollow ugc">https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/installer/nativeLang/english.xml</a></p>
<p dir="auto"><img src="https://camo.nodebb.org/48bd71782e35cd5a8ad8e77a6ea314d85dcb99ab?url=https%3A%2F%2Fi.imgur.com%2Fgm14h1k.png" alt="shorcut.xml" title="%appdata%\Notepad++\shortcut.xml" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/44976</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/44976</guid><dc:creator><![CDATA[eltrkbrd]]></dc:creator><pubDate>Sat, 29 Jun 2019 03:39:07 GMT</pubDate></item><item><title><![CDATA[Reply to Remove Consecutive Duplicate Lines - How to add in Shortcut mapper? on Sat, 29 Jun 2019 02:32:57 GMT]]></title><description><![CDATA[<p dir="auto">I wasn’t able to map out a keyboard shortcut for the “Remove Consecutive Duplicate Lines” menu (internal) command to shortcut.xml via Shortcut mapper as described above.</p>
<p dir="auto">I’m confident I went about it the right way, however it seems like a bug or inherent limitation within the notepad++ software that is preventing me from replacing the ids from other internal commands I successfully created from within shortcut mapper with the correct internal command ID (# 42077) for Remove Consecutive Duplicate Lines.</p>
<p dir="auto">I was so close too but made a sacrifice to the dev time bandit for curiosity’s sake (and perhaps a touch of my OCD)…</p>
<p dir="auto">Does anyone have suggestions on how to accomplish this?</p>
<p dir="auto">Thanks in advance</p>
]]></description><link>https://community.notepad-plus-plus.org/post/44974</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/44974</guid><dc:creator><![CDATA[eltrkbrd]]></dc:creator><pubDate>Sat, 29 Jun 2019 02:32:57 GMT</pubDate></item><item><title><![CDATA[Reply to Remove Consecutive Duplicate Lines - How to add in Shortcut mapper? on Thu, 27 Jun 2019 01:49:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/eltrkbrd" aria-label="Profile: eltrkbrd">@<bdi>eltrkbrd</bdi></a></p>
<p dir="auto">It seems as if you are well on your way to a solution for yourself.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/44923</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/44923</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 27 Jun 2019 01:49:26 GMT</pubDate></item><item><title><![CDATA[Reply to Remove Consecutive Duplicate Lines - How to add in Shortcut mapper? on Wed, 26 Jun 2019 22:58:30 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for you reply but I tried your suggestion and it doesn’t seem possible to create a macro by recording and running the Remove Consecutive Duplicate Lines (dedupe) menu command so that I can assign a keyboard shortcut to it.</p>
<p dir="auto">Also I found that shortcut.xml can assign custom internal commands to keyboard shortcuts which I’m currently experimenting making changes to by using the Shortcut mapper and then restarting Notepad++ to save changes.</p>
<p dir="auto">The “Remove Consecutive Duplicate Lines” menu command is listed as ID # 42077 in <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/installer/nativeLang/english.xml" rel="nofollow ugc">https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/installer/nativeLang/english.xml</a></p>
<p dir="auto">And also as “IDM_EDIT_REMOVE_DUP_LINES” in <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/src/menuCmdID.h" rel="nofollow ugc">https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/src/menuCmdID.h</a></p>
<p dir="auto">I also tried the NppExec plugin to no avail as posted here - <a href="https://stackoverflow.com/questions/34609009/notepad-adding-a-new-shortcut-for-an-existing-command" rel="nofollow ugc">https://stackoverflow.com/questions/34609009/notepad-adding-a-new-shortcut-for-an-existing-command</a></p>
<p dir="auto">P.S.<br />
Sorry for the redundant post; I can’t delete the old one above with typos and grammatical errors…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/44919</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/44919</guid><dc:creator><![CDATA[eltrkbrd]]></dc:creator><pubDate>Wed, 26 Jun 2019 22:58:30 GMT</pubDate></item><item><title><![CDATA[Reply to Remove Consecutive Duplicate Lines - How to add in Shortcut mapper? on Wed, 26 Jun 2019 22:00:49 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for you reply but I tried your suggestion and it doesn’t seem possible to create a macro by recording and running the Remove Consecutive Duplicate Lines (dedupe) menu command so that I can assign a keyboard shortcut to it.</p>
<p dir="auto">Also I found that shortcut.xml can assign custom internal commands to keyboard shortcuts.</p>
<p dir="auto">However, it doesn’t appear as though the dedupe command I want has an ID in the table here: <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/installer/nativeLang/english_customizable.xml" rel="nofollow ugc">https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/installer/nativeLang/english_customizable.xml</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/44916</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/44916</guid><dc:creator><![CDATA[eltrkbrd]]></dc:creator><pubDate>Wed, 26 Jun 2019 22:00:49 GMT</pubDate></item><item><title><![CDATA[Reply to Remove Consecutive Duplicate Lines - How to add in Shortcut mapper? on Wed, 26 Jun 2019 21:29:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/eltrkbrd" aria-label="Profile: eltrkbrd">@<bdi>eltrkbrd</bdi></a></p>
<p dir="auto">I’m AFK right now (well, my keyboard attached to a computer that has Notepad++) so I can’t test it, but you might consider recording a macro consisting of a single command and then typing that to your desired keycombo, as a workaround.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/44915</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/44915</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 26 Jun 2019 21:29:05 GMT</pubDate></item></channel></rss>