<?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[[Plugin Update] LuaScript v0.6.0]]></title><description><![CDATA[<p dir="auto">LuaScript v0.6.0 is now available. Enhancements and new features:</p>
<ul>
<li>Better performance (up to 3x in some cases)</li>
<li>More keys accepted when adding custom shortcuts (See <a href="https://github.com/dail8859/LuaScript/issues/36#issuecomment-260030050" rel="nofollow ugc">here</a>)</li>
<li><code>Ctrl+Space</code> to auto-complete global values</li>
<li>Auto-complete is more user-friendly</li>
<li>Implement nearly all Scintilla and Notepad++ notifications</li>
<li>Several more Notepad++ messages are  now supported</li>
<li>Added a toolbar icon to toggle the console</li>
</ul>
<p dir="auto">Download: <a href="https://github.com/dail8859/LuaScript/releases/tag/v0.6.0" rel="nofollow ugc">https://github.com/dail8859/LuaScript/releases/tag/v0.6.0</a><br />
Documentation: <a href="https://dail8859.github.io/LuaScript/index.html" rel="nofollow ugc">https://dail8859.github.io/LuaScript/index.html</a><br />
Source code/Github project: <a href="https://github.com/dail8859/LuaScript" rel="nofollow ugc">https://github.com/dail8859/LuaScript</a></p>
<p dir="auto">As always comments/questions/concerns/bug reports are welcome.</p>
<p dir="auto"><strong>Note:</strong> There is one change to the API that breaks backwards compatibility. The <code>"OnClose"</code> notification now provides 0 parameters instead of 2. If you need the buffer id or file name of the file being closed you can catch the <code>"OnBeforeClose"</code> notification and save the info.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/12968/plugin-update-luascript-v0-6-0</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 12:06:31 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/12968.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 23 Dec 2016 17:54:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Plugin Update] LuaScript v0.6.0 on Fri, 10 Mar 2017 19:32:53 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">I would love to see some of these in your <a href="http://readme.md" rel="nofollow ugc">readme.md</a></p>
</blockquote>
<p dir="auto">I’d prefer to keep the readme on the lighter side as there is full documentation (though not perfect) <a href="https://dail8859.github.io/LuaScript/" rel="nofollow ugc">here</a>.</p>
<blockquote>
<p dir="auto">I added some additional example PRs on GitHub</p>
</blockquote>
<p dir="auto">Thanks I’ll try to take a look at them this weekend if I get some time.</p>
<blockquote>
<p dir="auto">I am happy to contribute to the readme if you wouldnt mind</p>
</blockquote>
<p dir="auto">Contributions are always welcome. As mentioned above, the documentation would probably be a better place to contribute…though that might not be immediately straight forward as the documentation is mostly auto-generated from <a href="https://github.com/dail8859/LuaScript/tree/master/docs_gen" rel="nofollow ugc">these files</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/22565</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/22565</guid><dc:creator><![CDATA[dail]]></dc:creator><pubDate>Fri, 10 Mar 2017 19:32:53 GMT</pubDate></item><item><title><![CDATA[Reply to [Plugin Update] LuaScript v0.6.0 on Fri, 10 Mar 2017 19:22:20 GMT]]></title><description><![CDATA[<p dir="auto">Amazing! Thanks for all the great work. I would love to see some of these in your <a href="http://readme.md" rel="nofollow ugc">readme.md</a> because as a newbie it was very time consuming to search forums and github to figure all this basic stuff out.</p>
<p dir="auto">I added some additional example PRs on GitHub, I am happy to contribute to the readme if you wouldnt mind…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/22563</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/22563</guid><dc:creator><![CDATA[Ethan Piliavin]]></dc:creator><pubDate>Fri, 10 Mar 2017 19:22:20 GMT</pubDate></item><item><title><![CDATA[Reply to [Plugin Update] LuaScript v0.6.0 on Fri, 10 Mar 2017 19:07:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ethan-piliavin" aria-label="Profile: Ethan-Piliavin">@<bdi>Ethan-Piliavin</bdi></a></p>
<p dir="auto">Someone posted a similar snippet <a href="https://github.com/dail8859/LuaScript/issues/6#issuecomment-270778237" rel="nofollow ugc">here</a>.</p>
<blockquote>
<p dir="auto">Is it possible to register a function without a keyboard shortcut?</p>
</blockquote>
<p dir="auto">Yes, you can use an empty string or <code>nil</code></p>
]]></description><link>https://community.notepad-plus-plus.org/post/22562</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/22562</guid><dc:creator><![CDATA[dail]]></dc:creator><pubDate>Fri, 10 Mar 2017 19:07:17 GMT</pubDate></item><item><title><![CDATA[Reply to [Plugin Update] LuaScript v0.6.0 on Fri, 10 Mar 2017 18:56:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dail" aria-label="Profile: dail">@<bdi>dail</bdi></a>  thanks for your help. I have been tinkering with LuaScript the past couple of days and I am quite excited by the results. I want to start porting my pythonscript plugins over to LuaScript.</p>
<p dir="auto">FYI, since I am lazy, I dont want to modify my <code>plugins/config/startup.lua</code> every time I make a new script, so I played with your code above and am able to dynamically load the modules without having to add a new “require” every time.</p>
<pre><code>-- Auto load all ".lua" script files from "plugins/config/lua" folder

package.path = package.path .. ";" .. npp:GetPluginsConfigDir() .. "\\lua\\?.lua"
local f = io.popen('dir "' .. npp:GetPluginsConfigDir() .. '\\lua\\*.lua" /b') 
for mod in f:lines() do require( mod:sub(0,-5) ) end
</code></pre>
<p dir="auto"><strong>Question:</strong> Is it possible to register a function without a keyboard shortcut? (Just to appear in the menu, and not have to worry about finding an empty keyboard shortcut)</p>
<p dir="auto">Thanks for a wonderful new addition to the NPP ecosystem.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/22561</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/22561</guid><dc:creator><![CDATA[Ethan Piliavin]]></dc:creator><pubDate>Fri, 10 Mar 2017 18:56:59 GMT</pubDate></item><item><title><![CDATA[Reply to [Plugin Update] LuaScript v0.6.0 on Tue, 07 Mar 2017 19:47:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ethan-piliavin" aria-label="Profile: Ethan-Piliavin">@<bdi>Ethan-Piliavin</bdi></a></p>
<p dir="auto">Glad you are finding it useful.</p>
<blockquote>
<p dir="auto">Include external .lua files within script?</p>
</blockquote>
<p dir="auto">This is already possible using Lua’s <a href="https://www.lua.org/manual/5.3/manual.html#pdf-require" rel="nofollow ugc">require()</a>.</p>
<p dir="auto">You have to make sure the external files are in the right location or adjust the path that Lua searches for. In my startup script I have:</p>
<pre><code class="language-lua">package.path = package.path .. ";" .. npp:GetPluginsConfigDir() .. "\\scripts\\?.lua"

require "myfile"
require "myotherfile"
</code></pre>
<p dir="auto">My external files are in a subdirectory next to the <code>startup.lua</code> file in a file called <code>scripts</code></p>
<blockquote>
<p dir="auto">API to add/remove toolbar buttons (or even new sidebars/toolbars)</p>
</blockquote>
<p dir="auto">In theory adding/removing buttons should be possible, though I don’t have any immediate plans to implement it. I assume by “sidebars/toolbars” you mean docked dialogs…though not impossible this probably won’t be added any time soon if ever.</p>
<blockquote>
<p dir="auto">Show scripts in menu</p>
</blockquote>
<p dir="auto">As most people are familiar with PythonScript adding an <strong>individual script</strong> to a menu…LuaScript works differently. You don’t add entire scripts to the menu, but rather register <strong>functions</strong> to be called. This is done by using <a href="https://dail8859.github.io/LuaScript/classes/Notepad.html#Notepad.AddShortcut" rel="nofollow ugc">AddShortcut</a>. For example <a href="https://dail8859.github.io/LuaScript/examples/visualstudiolinecopy.lua.html" rel="nofollow ugc">this script</a> adds 2 new menu items.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/22388</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/22388</guid><dc:creator><![CDATA[dail]]></dc:creator><pubDate>Tue, 07 Mar 2017 19:47:22 GMT</pubDate></item><item><title><![CDATA[Reply to [Plugin Update] LuaScript v0.6.0 on Tue, 07 Mar 2017 19:30:03 GMT]]></title><description><![CDATA[<p dir="auto">Thanks <a class="plugin-mentions-user plugin-mentions-a" href="/user/dail" aria-label="Profile: dail">@<bdi>dail</bdi></a>  this is a great tool! Any chance for these features:</p>
<ol>
<li>Include external .lua files within script?</li>
<li>API to add/remove toolbar buttons (or even new sidebars/toolbars)</li>
<li>Show scripts in menu</li>
</ol>
]]></description><link>https://community.notepad-plus-plus.org/post/22386</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/22386</guid><dc:creator><![CDATA[Ethan Piliavin]]></dc:creator><pubDate>Tue, 07 Mar 2017 19:30:03 GMT</pubDate></item><item><title><![CDATA[Reply to [Plugin Update] LuaScript v0.6.0 on Sat, 07 Jan 2017 15:12:17 GMT]]></title><description><![CDATA[<p dir="auto">Hello dail,</p>
<p dir="auto">Thank you for your great work. I appreciate it.</p>
<p dir="auto">Best regards.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/20672</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/20672</guid><dc:creator><![CDATA[Yaron]]></dc:creator><pubDate>Sat, 07 Jan 2017 15:12:17 GMT</pubDate></item></channel></rss>