<?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[Dictionary Autocompletion]]></title><description><![CDATA[<p dir="auto">Has dictionary completion ever been discussed ? In (n)vim we can have autocompletion in scratch buffer even if we a 1MB text file containing words in in path. The text file containing words is easy to download from aspell website.</p>
<p dir="auto">I had tried to achieve this by making the words file an XML, but the size went to 4MB and found that at startup autocompletion does not trigger. The workaround was to choose a language, trigger autocompletion in that and then choose normal mode again to have diction autocompletion. But I gave up soon as it was little annoying flow.</p>
<p dir="auto">Would like to see your opinions folks. Thanks for reading.</p>
<p dir="auto">Edit: adding snippet of neovim dictionary autocompletion.</p>
<p dir="auto"><img src="/assets/uploads/files/1682526512627-96a5c4a3-0924-49a9-bd9e-91d7e55e71b5-image.png" alt="96a5c4a3-0924-49a9-bd9e-91d7e55e71b5-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/topic/24409/dictionary-autocompletion</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 01:25:31 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/24409.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 26 Apr 2023 16:21:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dictionary Autocompletion on Fri, 19 May 2023 21:06:04 GMT]]></title><description><![CDATA[<p dir="auto">The dictionary autocompletion thing with PythonScript has been implemented <a href="https://github.com/molsonkiko/dictautocomp" rel="nofollow ugc">here</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86466</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86466</guid><dc:creator><![CDATA[Mark Olson]]></dc:creator><pubDate>Fri, 19 May 2023 21:06:04 GMT</pubDate></item><item><title><![CDATA[Reply to Dictionary Autocompletion on Fri, 28 Apr 2023 16:48:00 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> As notepad++ is not actually my primary code editor, for my needs it is almost feature complete software. I use N++ as a scratchpad, for viewing log files, to compare files and sometimes edit hex files.</p>
<p dir="auto">If my opinion were to matter, well, I would have loved had N++ shipped with dictionary autocompletion (normal.xml or some other way), but I realise it’s not what majority of users might want. So at this point I would not poke the issue in GitHub.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85997</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85997</guid><dc:creator><![CDATA[Debajyoti Datta]]></dc:creator><pubDate>Fri, 28 Apr 2023 16:48:00 GMT</pubDate></item><item><title><![CDATA[Reply to Dictionary Autocompletion on Fri, 28 Apr 2023 15:47:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/21390">@Debajyoti-Datta</a> said in <a href="/post/85994">Dictionary Autocompletion</a>:</p>
<blockquote>
<p dir="auto">I have no idea why I was referred as user “from the wild” in GitHub</p>
</blockquote>
<p dir="auto">The main Notepad++ developer, while he appreciates the insights of power users like me, prefers data from random users "in the wild’ (that’s normally the way I phrase that; I don’t know why I used “from” in the github issue; essentially, someone not someone like me, “on display in the zoo”, who is dealing with the esoterica of Notepad++, and trying to push it to the limits and beyond), because he feels your usage is more “typical” than someone like me or some of the other “regulars” in this forum.</p>
<p dir="auto">Since I’ve gotten used to that perspective, even when I’m commenting in a plugin issue (which has a different developer), I tend to emphasize that whatever I’m talking about is not just from a weird power-user like me, but from a normal user “in the wild”.  So even thought it was a plugin issue, not a core application issue, I  pointed out that it wasn’t just me being a whiny power-user. :-)</p>
<p dir="auto">Glad Alt+L is working for your needs for now.  If you wanted to poke at <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/12325" rel="nofollow ugc">issue #12325</a>, showing that there are more people interested in the getting the normal-text-autocompletion bug fixed than just me, that might encourage Don to work on that one.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85996</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85996</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 28 Apr 2023 15:47:59 GMT</pubDate></item><item><title><![CDATA[Reply to Dictionary Autocompletion on Fri, 28 Apr 2023 13:33:15 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> I have no idea why I was referred as user “from the wild” in GitHub <em><strong>:D</strong></em>,<br />
but I have settled into ALT+L  to change language as of now, I didn’t know this default language change shortcut earlier, and hated using mouse. But if the issue you mentioned gets fixed in any future release it will be a great addition.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85994</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85994</guid><dc:creator><![CDATA[Debajyoti Datta]]></dc:creator><pubDate>Fri, 28 Apr 2023 13:33:15 GMT</pubDate></item><item><title><![CDATA[Reply to Dictionary Autocompletion on Thu, 27 Apr 2023 21:02:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/26710">@Mark-Olson</a><br />
I’ve now implemented case-insensitive autocompletion from a word list in the PythonScript thing:<br />
<img src="/assets/uploads/files/1682629329336-178450d6-dec7-4888-a6dc-1f2340715652-image.png" alt="178450d6-dec7-4888-a6dc-1f2340715652-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/85983</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85983</guid><dc:creator><![CDATA[Mark Olson]]></dc:creator><pubDate>Thu, 27 Apr 2023 21:02:27 GMT</pubDate></item><item><title><![CDATA[Reply to Dictionary Autocompletion on Thu, 27 Apr 2023 15:53:07 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><br />
I made to comment in <a href="https://github.com/Predelnik/DSpellCheck/issues/305" rel="nofollow ugc">the issue you linked</a> that it’s actually pretty easy to implement efficient autocompletion with a large word list using the <a href="https://en.wikipedia.org/wiki/Trie" rel="nofollow ugc">trie data structure</a>. I made a simple proof-of-concept in PythonScript. I’m not quite satisfied with what I’ve built yet, but here’s an illustration of it doing autocompletions from the Merriam-Webster English Dictionary.<br />
<img src="/assets/uploads/files/1682610768735-594cebbd-e54e-492a-a638-d542f3171552-image.png" alt="594cebbd-e54e-492a-a638-d542f3171552-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/85976</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85976</guid><dc:creator><![CDATA[Mark Olson]]></dc:creator><pubDate>Thu, 27 Apr 2023 15:53:07 GMT</pubDate></item><item><title><![CDATA[Reply to Dictionary Autocompletion on Wed, 26 Apr 2023 17:10:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/21390">@Debajyoti-Datta</a> ,</p>
<p dir="auto">I vaguely remember previous discussions, but didn’t feel like doing the search myself.</p>
<p dir="auto">using <code>autoCompletion\normal.xml</code> isn’t a bad idea (and is probably the best we came up with in prior discussions).  But I agree, the workaround of having to change language away from and back to Normal Text is really annoying – I created  <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/12325" rel="nofollow ugc">issue #12325</a> last fall, but nothing’s come of it yet.</p>
<p dir="auto">As a less-annoying workaround, I would suggest a macro: unfortunately, language selections aren’t macro-recordable, but fortunately, they are macro-playable.  commandID 46016 sets language to Normal Text, and (at random) 46006 sets it to XML, so if you hand-craft a macro to send 46006 then 46016, it will</p>
<pre><code>&lt;Macro name="Prepare For Autocomplete" Ctrl="yes" Alt="no" Shift="yes" Key="65"&gt;
    &lt;Action type="2" message="0" wParam="46006" lParam="0" sParam="" /&gt;
    &lt;Action type="2" message="0" wParam="46016" lParam="0" sParam="" /&gt;
&lt;/Macro&gt;
</code></pre>
<p dir="auto">This one assigns it to Ctrl+Shift+A (for “prepare for <strong>A</strong>utocomplete”), though you can change it in the Shortcut Mapper if you want a different shortcut.</p>
<p dir="auto">To install this macro, close all instances of Notepad++; edit <code>%AppData%\Notepad++\shortcuts.xml</code> to include that macro in its <code>&lt;Macros&gt;</code> section and save; exit Notepad++.  The next time you run, Ctrl+Shift+A will reset the language to Normal, and will then allow it to use <code>autoComplete\normal.xml</code> for auto-completion right away.  (Also, if you happened to have another file in your current session that has an assigned language – like if you had an XML file open – then when you File &gt; New or File &gt; Open a plaintext file, autocompletion will already be active.)</p>
<ul>
<li><a href="https://npp-user-manual.org/docs/config-files/#editing-configuration-files" rel="nofollow ugc">Editing Config Files</a></li>
<li><a href="https://npp-user-manual.org/docs/config-files/#macros" rel="nofollow ugc">Macros section of Config Files</a></li>
<li><a href="https://npp-user-manual.org/docs/macros/" rel="nofollow ugc">Macros overview</a></li>
</ul>
<p dir="auto">So maybe that macro (or the trick of having another file already open) will make normal.xml work well enough for you.  But maybe not.</p>
<p dir="auto">Alternatively, you could try a feature request for the DSpellCheck plugin – which can use Aspell, Hunspell, or the Windows user dictionary:  you could go to its <a href="https://github.com/Predelnik/DSpellCheck/issues" rel="nofollow ugc">issues page</a>, and see if the author of that plugin would be willing to add an option to “use the active dictionary to populate Notepad++'s auto-completion word list”.  <em>(edit: it looks like <a href="https://github.com/Predelnik/DSpellCheck/issues/305" rel="nofollow ugc">someone already suggested this to the plugin author</a>)</em></p>
]]></description><link>https://community.notepad-plus-plus.org/post/85956</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85956</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 26 Apr 2023 17:10:47 GMT</pubDate></item></channel></rss>