<?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[NppExec v0.6.2 has been released!]]></title><description><![CDATA[<p dir="auto">NppExec v0.6.2:</p>
<ul>
<li>changed: now NppExec uses CreateFile+FILE_FLAG_WRITE_THROUGH while writing<br />
files to avoid filling with zero bytes on system shutdown.</li>
<li>changed: now NppExec changes the current directory to %TEMP% when an unnamed<br />
file (such as “new 1”) is activated and “Follow $(CURRENT_DIRECTORY)” is on.<br />
To revert to the old behavior (the current directory is not changed when an<br />
unnamed file is activated), set the manual option “Cd_UnnamedFile” to 0.</li>
</ul>
<ul>
<li>added: now NppExec supports “cloud location path” in Notepad++'s settings.<br />
With cloud location path specified in Notepad++'s settings, NppExec does<br />
the following:
<ul>
<li>On start, NppExec tries to read its configuration files from the cloud<br />
location path. If these files do not exist or are filled with NULs,<br />
NppExec reads its configuration from $(PLUGINS_CONFIG_DIR).</li>
<li>When NppExec saves its configuration files, first they are saved to<br />
$(PLUGINS_CONFIG_DIR) and then copied to the cloud location path. Thus,<br />
NppExec always has copies of its current configuration files within the<br />
$(PLUGINS_CONFIG_DIR) folder.</li>
<li>NppExec’s saved scripts - the “npes_saved.txt” file - are monitored in<br />
the cloud location path. So, if you manually edit the “npes_saved.txt”<br />
within the cloud location, NppExec detects it. If, however, you manually<br />
edit the “npes_saved.txt” within the $(PLUGINS_CONFIG_DIR) folder, it is<br />
ignored.<br />
When the cloud location path is <em>not</em> specified in Notepad++'s settings,<br />
NppExec reads and stores its configuration within $(PLUGINS_CONFIG_DIR).<br />
And the “npes_saved.txt” is monitored in that folder.</li>
</ul>
</li>
<li>added: $(NPP_FULL_FILE_PATH), $(CLOUD_LOCATION_PATH)</li>
<li>added: indirect variable reference, e.g. $($(name)). Examples:<br />
set local c = 123        // $(c) = 123<br />
set local b = c          // $(b) = c<br />
set local a = $($(b))    // $(a) = $($(b)) = $(c) = 123<br />
set local $($(b)) = 456  // $(c) = 456<br />
unset local $($(b))      // deletes $(c)<br />
set local i = #          // $(i) = #<br />
set local j = 1          // $(j) = 1<br />
echo $($(i)$(j))         // echo $(#1)</li>
</ul>
<ul>
<li>changed: now the variables $(ARGC), $(ARGV), $(ARGV[1]) and so on support<br />
the indirect variable reference (see above)</li>
</ul>
<ul>
<li>added: Ctrl+Break in the Console aborts the currently running script</li>
</ul>
<p dir="auto">As always, get it either here:<br />
<a href="https://github.com/d0vgan/nppexec/releases/tag/v062" rel="nofollow ugc">https://github.com/d0vgan/nppexec/releases/tag/v062</a><br />
or here:<br />
<a href="https://sourceforge.net/projects/npp-plugins/files/NppExec/NppExec%20Plugin%20v0.6.2/" rel="nofollow ugc">https://sourceforge.net/projects/npp-plugins/files/NppExec/NppExec Plugin v0.6.2/</a></p>
<p dir="auto">Have fun!</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20802/nppexec-v0-6-2-has-been-released</link><generator>RSS for Node</generator><lastBuildDate>Thu, 13 Aug 2026 18:44:29 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20802.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 26 Feb 2021 17:35:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to NppExec v0.6.2 has been released! on Sat, 27 Feb 2021 13:52:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vitaliy-dovgan" aria-label="Profile: Vitaliy-Dovgan">@<bdi>Vitaliy-Dovgan</bdi></a> said in <a href="/post/63344">NppExec v0.6.2 has been released!</a>:</p>
<blockquote>
<p dir="auto">achieved by setting a non-local variable within a script</p>
</blockquote>
<p dir="auto">I hadn’t considered that but yes, that would do it.  <code>NPP_EXEC</code> returns to where it was called acting like a subroutine call and we can use <code>SET</code> (not <code>LOCAL</code>) to store the return value.</p>
<p dir="auto">Thanks for that!</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63365</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63365</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Sat, 27 Feb 2021 13:52:08 GMT</pubDate></item><item><title><![CDATA[Reply to NppExec v0.6.2 has been released! on Sat, 27 Feb 2021 09:52:00 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><br />
If I understand the idea correctly, the same goal can be achieved by setting a non-local variable within a script. E.g.</p>
<pre><code>set x = 1
set s = abc ded
</code></pre>
<p dir="auto">will make these variables available everywhere (inside a script, outside a script, inside other scripts) until <code>unset</code> is called for them.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63344</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63344</guid><dc:creator><![CDATA[Vitaliy Dovgan]]></dc:creator><pubDate>Sat, 27 Feb 2021 09:52:00 GMT</pubDate></item><item><title><![CDATA[Reply to NppExec v0.6.2 has been released! on Fri, 26 Feb 2021 22:25:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vitaliy-dovgan" aria-label="Profile: Vitaliy-Dovgan">@<bdi>Vitaliy-Dovgan</bdi></a></p>
<p dir="auto">Maybe not possible, maybe an enhancement if not - can I get the return “value” of an NppExec script?  I see I can get the exit status:</p>
<pre><code>$(LAST_CMD_RESULT)  :  result of the last NppExec's command
                         (1 - succeeded, 0 - failed, -1 - invalid arg)
</code></pre>
<p dir="auto">It would be incredible if I could run an NppExec script as a “subroutine” for input to another:</p>
<pre><code>SET LOCAL RESULT = NPP_EXEC my_script
</code></pre>
<p dir="auto">My thought would be to create a <code>getopt</code>-like script similar to:</p>
<pre><code>::getopt
SET LOCAL START = 0
SET LOCAL END ~ $(ARGC) - 1
IF $(START)==$(END) GOTO END
:LOOP
ECHO $(ARGV[$(START)])
SET LOCAL START ~ $(START) + 1
IF $(START)&lt;=$(END) GOTO LOOP
:END
</code></pre>
<p dir="auto">Instead of <code>ECHO</code>, I could concat the args into a variable and return that - just thinking about uses for the new indirect variable reference expansion.</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63333</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63333</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Fri, 26 Feb 2021 22:25:21 GMT</pubDate></item><item><title><![CDATA[Reply to NppExec v0.6.2 has been released! on Fri, 26 Feb 2021 19:57:09 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/vitaliy-dovgan" aria-label="Profile: vitaliy-dovgan">@<bdi>vitaliy-dovgan</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">As <strong>administrator</strong>, I took the liberty to modify <strong>slightly</strong> your post, because of a <strong>side-effect</strong> of the <strong><code>Markdown</code></strong> syntax !</p>
<p dir="auto">Indeed, when you write :</p>
<pre><code class="language-z">set local c = 123 // $(c) = 123
</code></pre>
<p dir="auto">we get this sentence:</p>
<p dir="auto"><em>set local c = 123 // $© = 123</em></p>
<p dir="auto">And so, I <strong>modified</strong> this sentence, and the other ones containing <strong><code>$(c)</code></strong>, with :</p>
<pre><code class="language-z">set local c = 123 // $\(c\) = 123
</code></pre>
<p dir="auto">which <strong>correctly</strong> displays :</p>
<p dir="auto"><em>set local c = 123 // $(c) = 123</em></p>
<hr />
<p dir="auto">Many thanks for your <strong>continued</strong> support and <strong>enhancements</strong> of this <strong>main</strong> N++ plugin !</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63307</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63307</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 26 Feb 2021 19:57:09 GMT</pubDate></item><item><title><![CDATA[Reply to NppExec v0.6.2 has been released! on Fri, 26 Feb 2021 18:07:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vitaliy-dovgan" aria-label="Profile: Vitaliy-Dovgan">@<bdi>Vitaliy-Dovgan</bdi></a> said in <a href="/post/63300">NppExec v0.6.2 has been released!</a>:</p>
<blockquote>
<p dir="auto">NppExec v0.6.2:</p>
</blockquote>
<p dir="auto">Already installed and experimenting.  I like the indirect variable references - probably need to relook at some of my scripts - I know that would have come in handy in the past.</p>
<p dir="auto">Thanks for continued support of this great plugin!</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63302</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63302</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Fri, 26 Feb 2021 18:07:02 GMT</pubDate></item></channel></rss>