<?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 - latest development version]]></title><description><![CDATA[<p dir="auto">Hello everyone!<br />
Latest development version of NppExec contains several interesting changes requested by users. These changes, in their turn, led to some other changes - and I believe that it is a good time to share the result with you to get your opinions and comments on the result.<br />
Here is the list of changes included in this build:</p>
<ul>
<li>added: now NppExec supports the “Dark Mode” of Notepad++ v8<br />
(Thanks to Peter Jones for the updated icons!)<br />
NppExec is still compatible with previous versions of Notepad++.<br />
<a href="https://github.com/d0vgan/nppexec/issues/39" rel="nofollow ugc">https://github.com/d0vgan/nppexec/issues/39</a></li>
</ul>
<ul>
<li>
<p dir="auto">changed: now NppExec supports quoted strings in the form of “abc”, ‘abc’  and `abc`.<br />
This allows to pass quote characters within a quoted string: `“`, '”', ‘“abc” `def`’ and so on.<br />
Now, if you want to pass a text that starts or ends with ’ or ` character,<br />
you need to enquote this text in a different pair of quotes. For example:   `'t was brilling…`, “Press `Esc`”, etc.</p>
</li>
<li>
<p dir="auto">changed: now NppExec’s Console and the Toolbar button explicitly mention “NppExec” in their names<br />
<a href="https://github.com/d0vgan/nppexec/issues/40" rel="nofollow ugc">https://github.com/d0vgan/nppexec/issues/40</a></p>
</li>
</ul>
<ul>
<li>
<p dir="auto">added: new menu item “Change Execute Script Font…”<br />
<a href="https://github.com/d0vgan/nppexec/issues/37" rel="nofollow ugc">https://github.com/d0vgan/nppexec/issues/37</a></p>
</li>
<li>
<p dir="auto">added: now MESSAGEBOX and INPUTBOX can accept 4th parameter ‘time_ms’<br />
<a href="https://github.com/d0vgan/nppexec/issues/36" rel="nofollow ugc">https://github.com/d0vgan/nppexec/issues/36</a></p>
</li>
</ul>
<ul>
<li>changed: now the InputBox can be closed by pressing Esc. When it happens, the value of $(INPUT) will be empty.<br />
<a href="https://github.com/d0vgan/nppexec/issues/41" rel="nofollow ugc">https://github.com/d0vgan/nppexec/issues/41</a></li>
</ul>
<ul>
<li>
<p dir="auto">added: file names “npes_temp.txt” and “npes_saved.txt” can be customized   (see “NppExec_TechInfo.txt” for details)<br />
<a href="https://github.com/d0vgan/nppexec/issues/25" rel="nofollow ugc">https://github.com/d0vgan/nppexec/issues/25</a></p>
</li>
<li>
<p dir="auto">NppExec Manual updated</p>
</li>
</ul>
<p dir="auto">The latest build is available here:<br />
<a href="https://sourceforge.net/projects/npp-plugins/files/NppExec/NppExec%20Plugin%20%28dev%29/" rel="nofollow ugc">https://sourceforge.net/projects/npp-plugins/files/NppExec/NppExec Plugin (dev)/</a><br />
The archive NppExec20210620_dll_PA.zip is the one you need.</p>
<p dir="auto">Please feel free to share your thoughts on these changes and report any problems with this build.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/21365/nppexec-latest-development-version</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Nov 2026 10:46:27 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/21365.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 20 Jun 2021 19:49:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to NppExec - latest development version on Tue, 15 Feb 2022 08:48:27 GMT]]></title><description><![CDATA[<p dir="auto">Continuing to polish the plugin before the release :)<br />
Latest dev version NppExec20220215 includes small improvements, such as:</p>
<ul>
<li>new flag 64 for “npe_console c&lt;N&gt;”, “npe_console s&lt;N&gt;” and “npp_exectext”</li>
<li>fixed: “npe_console k3” did not work with Alt+key</li>
<li>(internal) CNppExecCommandExecutor::ExecuteChildProcessCommand supports multi-line input</li>
</ul>
<p dir="auto"><a href="https://sourceforge.net/projects/npp-plugins/files/NppExec/NppExec%20Plugin%20%28dev%29/" rel="nofollow ugc">https://sourceforge.net/projects/npp-plugins/files/NppExec/NppExec Plugin (dev)/</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/74168</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/74168</guid><dc:creator><![CDATA[Vitalii Dovgan]]></dc:creator><pubDate>Tue, 15 Feb 2022 08:48:27 GMT</pubDate></item><item><title><![CDATA[Reply to NppExec - latest development version on Fri, 04 Feb 2022 02:53:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vitalii-dovgan" aria-label="Profile: vitalii-dovgan">@<bdi>vitalii-dovgan</bdi></a></p>
<p dir="auto">Thanks! And thanks for the help on your Github issues page - my scripts are updated and this latest 3-Feb version is working fine for me so far!</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/73680</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73680</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Fri, 04 Feb 2022 02:53:55 GMT</pubDate></item><item><title><![CDATA[Reply to NppExec - latest development version on Thu, 03 Feb 2022 18:14:06 GMT]]></title><description><![CDATA[<p dir="auto">Please try the latest version NppExec20220203_dll here:<br />
<a href="https://sourceforge.net/projects/npp-plugins/files/NppExec/NppExec%20Plugin%20(dev)/" rel="nofollow ugc">https://sourceforge.net/projects/npp-plugins/files/NppExec/NppExec Plugin (dev)/</a></p>
<p dir="auto">Changelog:</p>
<ul>
<li>NPE_CONSOLE j+/j- to kill process tree on/off.</li>
<li>npp_files updated to Notepad++ 8.2.2.</li>
<li>tiny internal improvements</li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/73663</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73663</guid><dc:creator><![CDATA[Vitalii Dovgan]]></dc:creator><pubDate>Thu, 03 Feb 2022 18:14:06 GMT</pubDate></item><item><title><![CDATA[Reply to NppExec - latest development version on Mon, 31 Jan 2022 16:30:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vitalii-dovgan" aria-label="Profile: vitalii-dovgan">@<bdi>vitalii-dovgan</bdi></a> said in <a href="/post/73415">NppExec - latest development version</a>:</p>
<blockquote>
<p dir="auto">Guys, there is a release candidate for an upcoming new version of NppExec.</p>
</blockquote>
<p dir="auto">Found what seems to be a regression.</p>
<p dir="auto">I have a global set:</p>
<pre><code>SET CMD=cmd.exe /d /c
</code></pre>
<p dir="auto">And I use it in scripts - for example:</p>
<pre><code>$(CMD) start $(NPP_DIRECTORY)\change.log
</code></pre>
<p dir="auto">and this launches Notepad.exe (my default .log editor apparently) with <code>change.log</code>.</p>
<p dir="auto">In the new version, nothing happens.  It seems the <code>$(CMD)</code> variable isn’t launching an external CMD.exe process?  Weird, because other things like:</p>
<pre><code>$(CMD) dir /b /ad $(NPP_DIRECTORY)
</code></pre>
<p dir="auto">do work.</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/73521</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73521</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Mon, 31 Jan 2022 16:30:52 GMT</pubDate></item><item><title><![CDATA[Reply to NppExec - latest development version on Fri, 28 Jan 2022 14:08:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vitalii-dovgan" aria-label="Profile: vitalii-dovgan">@<bdi>vitalii-dovgan</bdi></a> said in <a href="/post/73415">NppExec - latest development version</a>:</p>
<blockquote>
<p dir="auto">Guys, there is a release candidate for an upcoming new version of NppExec.<br />
You can find the latest binaries here:</p>
</blockquote>
<p dir="auto">Just installed it.  FYI, I’ve been using your AppVeyor build for a bit now before this.</p>
<p dir="auto">I did notice a caveat in installing - a new menu item or two in the NppExec menu caused a shift in all of my Macro menu items shortcuts that are NppExec scripts so I had to go manually remap all the shortcuts.  This is a known issue with Notepad++ menu ID numbers - nothing you can “fix”, just something for others to be aware of.</p>
<p dir="auto">Great job on continued development of the NppExec plugin - one of my <em><strong>MUST HAVE</strong></em> plugins I use in every Notepad++ editing session!</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/73417</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73417</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Fri, 28 Jan 2022 14:08:18 GMT</pubDate></item><item><title><![CDATA[Reply to NppExec - latest development version on Fri, 28 Jan 2022 13:28:15 GMT]]></title><description><![CDATA[<p dir="auto">Guys, there is a release candidate for an upcoming new version of NppExec.<br />
You can find the latest binaries here:<br />
<a href="https://sourceforge.net/projects/npp-plugins/files/NppExec/NppExec%20Plugin%20%28dev%29/" rel="nofollow ugc">https://sourceforge.net/projects/npp-plugins/files/NppExec/NppExec Plugin (dev)/</a></p>
<p dir="auto">I know that everyone is waiting for ads in NppExec’s Console, but I have to disappoint you: no ads in NppExec, even though human kind seems to be obsessed by ads (as ads appear every-freaking-where).<br />
Also I have to disappoint you regarding multi-line pasting into NppExec’s Console: I am still not sure how exactly to implement this. Instead, there is a new feature that can be used <em>instead of</em> multi-line pasting (though I understand it can not completely replace a native ability of multi-line pasting).</p>
<p dir="auto">So, here are the most interesting new features:</p>
<ol>
<li>Added a built-in highlight filter that catches most of compiler error messages. This filter is disabled by default to avoid an impact on performance. It is recommanded to enable this filter locally, right before running a compiler or an interpreter: “npe_console local – x+”.</li>
<li>Added new menu items “Execute Selected Text”, “Execute Clipboard Text”. So now you can select a text in Notepad++ and “Execute Selected Text” will execute it as NppExec’s script or send it to the running child process as an input. Also, a new command “npp_exectext” added.</li>
</ol>
<p dir="auto">Here is the list of all the changes:</p>
<ul>
<li>added: built-in highlight filter that catches most of compiler error<br />
messages, thanks to David Maisonave.<br />
This filter is disabled by default to avoid an impact on performance.<br />
It is recommanded to enable this filter locally, right before running<br />
a compiler or an interpreter: “npe_console local – x+”.<br />
See also: “NppExec_TechInfo.txt”, the ‘CompilerErrors’ setting.</li>
<li>added: now WarningAnalyzer caches the previously matched lines.<br />
It allows the built-in highlight filter (see above) to react to a<br />
double-click in the Console even when this filter is disabled at the<br />
moment of double-clicking. Explanation: let’s consider a situation when<br />
the built-in highlight filter had been disabled globally but was locally<br />
enabled via “npe_console local – x+” right before running a compiler. So<br />
the messages produced by compiler are analyzed by the built-in highlight<br />
filter and the filter is automatically disabled after the compiler exits.<br />
Now, as WarningAnalyzer has cached the matched lines from the compiler’s<br />
output, it is possible to double-click these lines in NppExec’s Console<br />
to get the cached match result.</li>
<li>added: the last executed script is now saved to “npes_last.txt”.</li>
<li>added: new menu items “Execute Selected Text”, “Execute Clipboard Text”.</li>
<li>NPE_CONSOLE c&lt;N&gt; and s&lt;N&gt; to change the text processing for the<br />
Execute Clipboard Text and Execute Selected Text.</li>
<li>added: new command “proc_input”.</li>
<li>added: new command “npp_exectext”.</li>
<li>added: new variables $(SELECTED_TEXT), $(IS_PROCESS).</li>
</ul>
<ul>
<li>changed: the menu item “Disable command aliases” has been removed. Use<br />
the “npe_console q+/q-” instead.</li>
<li>changed: now killing a running child process also kills any processes<br />
that were started from the running child process.</li>
<li>changed: now “help” command works in NppExec’s scripts.</li>
</ul>
<ul>
<li>fixed: now “set local” (without an argument) prints only local vars.</li>
</ul>
<ul>
<li>NppExec Manual updated</li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/73415</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73415</guid><dc:creator><![CDATA[Vitalii Dovgan]]></dc:creator><pubDate>Fri, 28 Jan 2022 13:28:15 GMT</pubDate></item><item><title><![CDATA[Reply to NppExec - latest development version on Wed, 28 Jul 2021 19:27:00 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">Another workaround:</p>
<pre><code>if "" != "$(CLIPBOARD_TEXT)" goto :SHOW_RESULT
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/68413</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/68413</guid><dc:creator><![CDATA[dinkumoil]]></dc:creator><pubDate>Wed, 28 Jul 2021 19:27:00 GMT</pubDate></item><item><title><![CDATA[Reply to NppExec - latest development version on Wed, 28 Jul 2021 19:08:18 GMT]]></title><description><![CDATA[<p dir="auto">Here is an alternative approach:</p>
<pre><code>set local len ~ strlen $(CLIPBOARD_TEXT)
if $(len) != 0 goto :SHOW_RESULT
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/68412</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/68412</guid><dc:creator><![CDATA[Vitaliy Dovgan]]></dc:creator><pubDate>Wed, 28 Jul 2021 19:08:18 GMT</pubDate></item><item><title><![CDATA[Reply to NppExec - latest development version on Wed, 28 Jul 2021 18:58:19 GMT]]></title><description><![CDATA[<p dir="auto">What about</p>
<pre><code>if `$(CLIPBOARD_TEXT)` != `` goto :SHOW_RESULT
</code></pre>
<p dir="auto">?<br />
In fact, the previous version of NppExec has other problems parsing the <code>IF</code> arguments, so that part of code was rewritten to be more strict in terms of syntax. So now extra <code>"</code> within another pair of <code>""</code> leads to syntax error.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/68410</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/68410</guid><dc:creator><![CDATA[Vitaliy Dovgan]]></dc:creator><pubDate>Wed, 28 Jul 2021 18:58:19 GMT</pubDate></item><item><title><![CDATA[Reply to NppExec - latest development version on Wed, 28 Jul 2021 18:36:31 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">I found a bug in the latest version of <code>NppExec</code> from <code>NppExec20210724_dll_PA.zip</code></p>
<p dir="auto">In one of my scripts there is the line</p>
<pre><code class="language-Z">if "$(CLIPBOARD_TEXT)" != "" goto :SHOW_RESULT
</code></pre>
<p dir="auto">If the clipboard contains text which contains a <code>"</code> sign (for example <code>This is a "testing" text</code>), I get an error message:</p>
<pre><code class="language-Z">; executing: IF "This is a "testing" text
" != "" goto :SHOW_RESULT
- Syntax error in the if-condition.
To prevent unpredictable behavior, the script is stopped.
</code></pre>
<p dir="auto">Previous versions of <code>NppExec</code> were able to process this line without any error.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/68408</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/68408</guid><dc:creator><![CDATA[dinkumoil]]></dc:creator><pubDate>Wed, 28 Jul 2021 18:36:31 GMT</pubDate></item><item><title><![CDATA[Reply to NppExec - latest development version on Tue, 27 Jul 2021 20:05:49 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><br />
The parsing of other files of manifest constant works great!  I messed up my testing the other day.</p>
<p dir="auto">In my further testing today, I was pleased to find that the names parsed by fparser for ‘~’ commands are independent of user created names.</p>
<pre><code>set pi = 3
set e = 2
set local locDiff ~ pi - e
echo locDiff=$(locDiff)
echo pi=$(pi)
echo e=$(e)
</code></pre>
<p dir="auto">displays</p>
<pre><code>locDiff=0.423311
pi=3
e=2
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/68384</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/68384</guid><dc:creator><![CDATA[artie-finkelstein]]></dc:creator><pubDate>Tue, 27 Jul 2021 20:05:49 GMT</pubDate></item><item><title><![CDATA[Reply to NppExec - latest development version on Tue, 27 Jul 2021 16:11:44 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><br />
Thank you for the prompt reply.</p>
<p dir="auto">It <strong>is</strong> possible to parse other .h files.  Cool.  I will spend additional time looking at other *.h files in (or symlinked into) <code>NppExec\NppExec</code>.  I may have overlooked something in my late night coding fatigue.</p>
<p dir="auto">As for the additional arguments on the <code>Advanced Options</code> dialog:  I was not asking for a change, only a verification that it was not possible at the present.  BTW:  Your ‘already look similar to the following’ code block display is a shortened version of how I have the code in <code>startup.npes</code> (npes_saved.txt):</p>
<pre><code>::afRunA
//  a/k/a:  afRun Alternate      &lt;Alt&gt; &lt;Ctrl+/&gt;        [N++: left scroll]    "Notepad++"
//  open with Notepad++.bat -multiInst -nosession    (ignores system association)
npp_console ?                           // keep console state
if      "$(ARGV[1])" == ""
    set local tmpShell = A              // default to Alternate
else 
    set local tmpShell = $(ARGV[1])
endif
NPP_EXEC  "$(SYS.NPE_SCRIPTS)\nppRun.npes"  $(tmpShell)
//
</code></pre>
<p dir="auto">afRunN is similar, but replaces the ‘A’ with an ‘N’<br />
afRun is also similar, but replaces the ‘A’ with a ‘U’<br />
I won’t go into the gory details of the rest of the NppExec and system code, but in the end I can ‘left mouse wheel’ click on a line of text in a file and open the target with the system associated program.</p>
<p dir="auto">I was looking at streamlining <code>startup.npes</code> a bit by using the <code>Advanced Options</code> area to provide the unique portion of each call (the letter ‘A’ or ‘N’).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/68383</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/68383</guid><dc:creator><![CDATA[artie-finkelstein]]></dc:creator><pubDate>Tue, 27 Jul 2021 16:11:44 GMT</pubDate></item><item><title><![CDATA[Reply to NppExec - latest development version on Tue, 27 Jul 2021 11:42:59 GMT]]></title><description><![CDATA[<p dir="auto">Placing any number of .h files under the “NppExec\NppExec” is expected to add all the definitions from these files to the FParser. For example, if I put Notepad++'es “resource.h” into that folder and my NppExec’s startup script does not contain any calculations, here is an extract of what I see after the following commands in NppExec’s Console:</p>
<pre><code>npe_debug 1
set local x ~ IDI_VIEW_UD_DLG_ICON_DM

</code></pre>
<p dir="auto">Here is the extract of a possible output:</p>
<pre><code>CheckUserMacroVars()
{
   [in]  "local x ~ IDI_VIEW_UD_DLG_ICON_DM"
   ; SET command found
   initFParserConsts()
   {
      C:\Progs\npp8\plugins\NppExec\NppExec\BaseDef.h
      (
         20 definitions added.
      )
      C:\Progs\npp8\plugins\NppExec\NppExec\menuCmdID.h
      (
         475 definitions added.
      )
      C:\Progs\npp8\plugins\NppExec\NppExec\Notepad_plus_msgs.h
      (
         264 definitions added.
      )
      C:\Progs\npp8\plugins\NppExec\NppExec\resource.h
      (
         error at line 22: "TEXT("Notepad++ v8.1")"
          - Syntax error: Unknown identifier at pos 0
         error at line 26: "TEXT("8.1\0")"
          - Syntax error: Unknown identifier at pos 0
         error at line 27: "8, 1, 0, 0"
          - Syntax error: Operator expected at pos 1
         429 definitions added.
      )
      C:\Progs\npp8\plugins\NppExec\NppExec\Scintilla.h
      (
         error at line 1299: "Sci_CharacterRange"
          - Syntax error: Unknown identifier at pos 0
         error at line 1300: "Sci_TextRange"
          - Syntax error: Unknown identifier at pos 0
         error at line 1301: "Sci_TextToFind"
          - Syntax error: Unknown identifier at pos 0
         error at line 1302: "Sci_RangeToFormat"
          - Syntax error: Unknown identifier at pos 0
         error at line 1303: "Sci_NotifyHeader"
          - Syntax error: Unknown identifier at pos 0
         1142 definitions added.
      )
   }
   ; fparser calc result: 261
   ; OK: local $(X) = 261
   [out] "local x = 261"
}
</code></pre>
<p dir="auto">The <code>initFParserConsts()</code> is called only once by demand - when a very first calculation is performed by current instance of NppExec. If Notepad++ is not restarted, <code>initFParserConsts()</code> will not be called again by the same instance of NppExec.</p>
<p dir="auto">As for the second question, it looks like it will require to modify the Advanced Options dialog by adding a new input field “Script arguments” right under the “Associated script” field. Also it will require an updated syntax of the “[UserMenu]” items - for example “menu item name :: script name :: script arguments”.<br />
In the same time, I believe your scripts “afRunAlt” and “afRunNpp” already look similar to the following:</p>
<pre><code>::afRunAlt
npp_exec afRun A

::afRunNpp
npp_exec afRun N
</code></pre>
<p dir="auto">that achieve the very same goal and avoids copy-pasting. So I’m not sure if the Advanced Options dialog really needs an additional element of the “Script arguments” field.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/68372</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/68372</guid><dc:creator><![CDATA[Vitaliy Dovgan]]></dc:creator><pubDate>Tue, 27 Jul 2021 11:42:59 GMT</pubDate></item><item><title><![CDATA[Reply to NppExec - latest development version on Mon, 26 Jul 2021 22:13:10 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">It works as advertised.<br />
Thank you.</p>
<p dir="auto">I tried pushing the limits:<br />
I copied the Npp <code>resource.h</code> file into <code>...\Notepad++\plugins\NppExec\NppExec</code> to see if other manifest constants could be read.  It worked once in a mini script I wrote to test reading &amp; basic math operations, but only once.  Reading constants in the traditional four .h files in that same folder always worked. The log file showed that the <code>resource.h</code> file was being opened and scanned even when the same script was tried again.<br />
Question:  Should this ‘expansion of function’ work?</p>
<p dir="auto">[change of focus area, still on NppExec though]<br />
Question #2:<br />
Is it possible to assign a command line style argument to a NppExec script placed on the <code>Menu Items</code> area of the NppExec <code>Advanced Options</code> dialog?  This would be similar to adding arguments or flags to a UserDefinedCommand in the <code>shortcuts.xml</code> file.  Right now I create individual wrapper functions in <code>startup.npes</code> (f/k/a <code>npes_saved.txt</code>).  This copying &amp; tweaking works fine; I want to coalesce the cookie cutter code and reduce the chance of forgetting to update one in the future.</p>
<p dir="auto">example:</p>
<pre><code>afRun :: afRun
afRunAlt :: afRunA
afRunNpp :: afRunN
</code></pre>
<p dir="auto">would look something like:</p>
<pre><code>afRun :: afRun
afRunAlt :: afRun  A
afRunNpp :: afRun  N
</code></pre>
<p dir="auto">where all three ‘exported’ functions would call the same core code and optionally pass in a flag.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/68356</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/68356</guid><dc:creator><![CDATA[artie-finkelstein]]></dc:creator><pubDate>Mon, 26 Jul 2021 22:13:10 GMT</pubDate></item><item><title><![CDATA[Reply to NppExec - latest development version on Sat, 24 Jul 2021 11:38:01 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">Great, thank you! Will test as soon as I have some spare time.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/68250</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/68250</guid><dc:creator><![CDATA[dinkumoil]]></dc:creator><pubDate>Sat, 24 Jul 2021 11:38:01 GMT</pubDate></item><item><title><![CDATA[Reply to NppExec - latest development version on Sat, 24 Jul 2021 10:04:12 GMT]]></title><description><![CDATA[<p dir="auto">NppExec20210724_dll:</p>
<ul>
<li>added: if~ &lt;condition&gt; - first calculates, then checks the condition</li>
</ul>
<p dir="auto">Get it here:<br />
<a href="https://sourceforge.net/projects/npp-plugins/files/NppExec/NppExec%20Plugin%20%28dev%29/" rel="nofollow ugc">https://sourceforge.net/projects/npp-plugins/files/NppExec/NppExec Plugin (dev)/</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/68249</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/68249</guid><dc:creator><![CDATA[Vitaliy Dovgan]]></dc:creator><pubDate>Sat, 24 Jul 2021 10:04:12 GMT</pubDate></item><item><title><![CDATA[Reply to NppExec - latest development version on Fri, 23 Jul 2021 14:05:50 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">Using <code>if~</code> seems to require the least amount of effort and is understandable. I would like it to see it resolved that way.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/68232</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/68232</guid><dc:creator><![CDATA[dinkumoil]]></dc:creator><pubDate>Fri, 23 Jul 2021 14:05:50 GMT</pubDate></item><item><title><![CDATA[Reply to NppExec - latest development version on Fri, 23 Jul 2021 09:42:42 GMT]]></title><description><![CDATA[<p dir="auto">Or we may alter the IF keyword itself, e.g.:</p>
<pre><code>if~ NPPMSG == WM_USER + 1000
if~ NPPMSG &gt;= WM_USER + 1000
else if~ NPPMSG &lt; WM_USER + 1000
</code></pre>
<p dir="auto">In terms of the execution logic, <code>if~ NPPMSG &gt;= WM_USER + 1000</code> is equal to:</p>
<pre><code>set local result ~ NPPMSG &gt;= WM_USER + 1000
if result == 1
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/68227</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/68227</guid><dc:creator><![CDATA[Vitaliy Dovgan]]></dc:creator><pubDate>Fri, 23 Jul 2021 09:42:42 GMT</pubDate></item><item><title><![CDATA[Reply to NppExec - latest development version on Fri, 23 Jul 2021 07:54:19 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>
<blockquote>
<p dir="auto">So there could be better proposals for the syntax.</p>
</blockquote>
<p dir="auto">Operator <code>&gt;=</code> could be <code>&gt;~</code> and <code>&lt;=</code> could be <code>&lt;~</code> but what about  the operators <code>&gt;</code> and <code>&lt;</code>? Changing them to <code>~&gt;</code> and <code>~&lt;</code> is confusing because of their similarity to <code>&gt;~</code> and <code>&lt;~</code>.</p>
<p dir="auto">Maybe you could introduce the ability to use abbreviated forms of the according english words:</p>
<pre><code class="language-Z">==  -&gt;  equ
!=  -&gt;  neq
&lt;   -&gt;  lss
&lt;=  -&gt;  leq
&gt;=  -&gt;  geq
&gt;   -&gt;  gtr
</code></pre>
<p dir="auto">For using calculations with <code>IF ... THEN</code> or <code>IF ... GOTO</code> statements these abbreviations could be prefixed with a <code>~</code> character.</p>
<p dir="auto">But if this whole thing will cause severe performance issues I would vote against changing anything. The workaround I mentioned above is not that bad.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/68224</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/68224</guid><dc:creator><![CDATA[dinkumoil]]></dc:creator><pubDate>Fri, 23 Jul 2021 07:54:19 GMT</pubDate></item><item><title><![CDATA[Reply to NppExec - latest development version on Thu, 22 Jul 2021 16:52:13 GMT]]></title><description><![CDATA[<p dir="auto">Comparisons (under IF) do not use calculations for performance reasons.<br />
We could, however, introduce new operators explicitly for calculations during comparisons. For example, it might be:</p>
<pre><code>if NPPMSG ~~ WM_USER + 1000 // calc. if eq
if $(x) + 1 !~ $(y) + 2 // calc. if not eq
</code></pre>
<p dir="auto">What do you think?<br />
And yes, it does not include alternate forms of operator <code>&lt;</code>, <code>&gt;=</code> and so on because they might look a bit ugly in combination with <code>~</code> . So there could be better proposals for the syntax.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/68205</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/68205</guid><dc:creator><![CDATA[Vitaliy Dovgan]]></dc:creator><pubDate>Thu, 22 Jul 2021 16:52:13 GMT</pubDate></item><item><title><![CDATA[Reply to NppExec - latest development version on Wed, 21 Jul 2021 16:26:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dinkumoil" aria-label="Profile: dinkumoil">@<bdi>dinkumoil</bdi></a></p>
<p dir="auto">As a random user, I’m not sure I can support reverting to the direct reference to the manifest constant names as defined in the files in <strong>…\Notepad++\plugins\NppExec\NppExec</strong>.</p>
<p dir="auto">Don’t get me wrong, I see it as a nice coding shortcut, but I think that it would overpower the variable namespace.  While many of the files of constants use a unique prefix, e.g., <code>IDM_</code>, <code>NPPM_</code> or <code>SCI_</code>, there are other constants, such as <code>FILE_NAME</code> or <code>CURRENT_WORD</code> that could easily be used in a script as an unqualified (no added attributes, e.g., ‘local’) variable and it is not clear to me which one would be evaluated.</p>
<p dir="auto">The NppExec language may define this behavior, and guarantee which variable or constant reference would be evaluated, but I don’t recall any clarification in the HelpAll file or the User Guide.  I assume the ‘~’ assignment operator is a signal that <code>fparser</code> will be used to evaluate the expression, and it is also responsible for interpreting the files of constants (see section 3.8.4 of the NppExec User Guide).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/68161</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/68161</guid><dc:creator><![CDATA[artie-finkelstein]]></dc:creator><pubDate>Wed, 21 Jul 2021 16:26:48 GMT</pubDate></item><item><title><![CDATA[Reply to NppExec - latest development version on Tue, 20 Jul 2021 12:17:58 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/68065">NppExec - latest development version</a>:</p>
<blockquote>
<p dir="auto">Please let me know if there are any problems/suggestions with this version before it is officially released.</p>
</blockquote>
<p dir="auto">A feature I strongly miss is expansion of constant values read from the files <code>BaseDef.h</code>, <code>menuCmdID.h</code>, <code>Notepad_plus_msgs.h</code> and <code>Scintilla.h</code> (part of every <em>NppExec</em> installation) when used in <code>if ... then</code> or <code>if ... goto</code> expressions to be able to write for example</p>
<pre><code>if $(MyVar) == MAIN_VIEW then ...
</code></pre>
<p dir="auto">Currently I have to use the workaround</p>
<pre><code>set local $(MainView) ~ MAIN_VIEW

if $(MyVar) == $(MainView) then ...
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/68111</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/68111</guid><dc:creator><![CDATA[dinkumoil]]></dc:creator><pubDate>Tue, 20 Jul 2021 12:17:58 GMT</pubDate></item><item><title><![CDATA[Reply to NppExec - latest development version on Mon, 19 Jul 2021 12:12:10 GMT]]></title><description><![CDATA[<p dir="auto">Hello everyone!<br />
I’ve collected everything to be included into the next release of NppExec - and now it’s time to share it with the community! Please let me know if there are any problems/suggestions with this version before it is officially released.<br />
Please download this version here:<br />
<a href="https://sourceforge.net/projects/npp-plugins/files/NppExec/NppExec%20Plugin%20%28dev%29/" rel="nofollow ugc">https://sourceforge.net/projects/npp-plugins/files/NppExec/NppExec Plugin (dev)/</a><br />
The archive NppExec20210719_dll is the one you want.<br />
Here is the full changelog for this version:</p>
<ul>
<li>added: now NppExec supports the “Dark Mode” of Notepad++ v8<br />
(Thanks to Peter Jones for the updated icons!)<br />
NppExec is still compatible with previous versions of Notepad++.</li>
</ul>
<ul>
<li>changed: now NppExec supports quoted strings in the form of “abc”, ‘abc’<br />
and `abc`.<br />
This allows to pass quote characters within a quoted string: `“`, '”',<br />
‘“abc” `def`’ and so on.<br />
Now, if you want to pass a text that includes ’ or ` character, you need<br />
to enquote this text in a different pair of quotes. For example:<br />
`'t was brillig…`, “Can’t stop”, “Press `Esc`”, etc.</li>
<li>changed: now NppExec’s Console and the Toolbar button explicitly mention<br />
“NppExec” in their names</li>
</ul>
<ul>
<li>added: new menu item “Change Execute Script Font…”</li>
<li>added: now MESSAGEBOX and INPUTBOX can accept 4th parameter ‘time_ms’</li>
</ul>
<ul>
<li>changed: now the InputBox can be closed by pressing Esc. When it happens,<br />
the value of $(INPUT) will be empty.</li>
</ul>
<ul>
<li>added: now con_colour, con_filter, env_set, npe_console, npe_noemptyvars,<br />
npe_sendmsgbuflen and npp_console support a new keyword “local”.<br />
This new keyword means: the changes are applied locally to the current<br />
NppExec’s script and are reverted back when the current script ends.<br />
Thus, the “local” keyword does not make sense in a single command executed<br />
directly in NppExec’s Console because the previous state is restored right<br />
after the execution of this single “local” command, so you will not see any<br />
effect of it.</li>
<li>added: set &lt;var&gt; ~ strescape &lt;s&gt;, set &lt;var&gt; ~ strunescape &lt;s&gt;</li>
<li>added: file names “npes_temp.txt” and “npes_saved.txt” can be customized<br />
(see “NppExec_TechInfo.txt” for details)</li>
</ul>
<ul>
<li>fixed: indirect variable reference in e.g. “echo #$(i) = $(#$(i))”</li>
</ul>
<ul>
<li>new advanced option “CustomMsgReady” (see “NppExec_TechInfo.txt”)</li>
<li>NppExec Manual updated</li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/68065</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/68065</guid><dc:creator><![CDATA[Vitaliy Dovgan]]></dc:creator><pubDate>Mon, 19 Jul 2021 12:12:10 GMT</pubDate></item><item><title><![CDATA[Reply to NppExec - latest development version on Mon, 21 Jun 2021 20:06:24 GMT]]></title><description><![CDATA[<p dir="auto">Other than my experiencing a minor hiccup with the Shortcut mapper reassigning the keycodes for my NppExec scripts (and nicely explained by <a class="plugin-mentions-user plugin-mentions-a" href="/user/vitaliy-dovgan" aria-label="Profile: Vitaliy-Dovgan">@<bdi>Vitaliy-Dovgan</bdi></a> in his response to <a class="plugin-mentions-user plugin-mentions-a" href="/user/astewart77" aria-label="Profile: astewart77">@<bdi>astewart77</bdi></a>) all the new features are working nicely for me.</p>
<p dir="auto">I would like to pass on a hard won insight into the <em>nesting</em> of quotes:  The inner quotes will be preserved if there are outer quotes at each critical processing step.  They are not magically remembered because they were nested the first time they were referenced.</p>
<pre><code>set local msg1 = "the '$(INPUT)' option is not available from the interactive menu,"
        set local msg2 = "use the NppExec console version instead"
        set local msg ~ strfromhex $(msg1) 0A 00 $(msg2) 
        messagebox "$(msg)" : "Warning" : : 7000
</code></pre>
<p dir="auto">In the above example, the inner single quotes around $(INPUT) will disappear if the outer double quotes around $(msg) are not used.  An additional thank you to <a class="plugin-mentions-user plugin-mentions-a" href="/user/vitaliy-dovgan" aria-label="Profile: Vitaliy-Dovgan">@<bdi>Vitaliy-Dovgan</bdi></a> for the correction in my thinking.</p>
<p dir="auto">FWIW:  There is a slightly newer version of the plugin posted in the <a href="https://sourceforge.net/projects/npp-plugins/files/NppExec/NppExec%20Plugin%20%28dev%29/" rel="nofollow ugc">dev folder</a> at sourceforge; <a class="plugin-mentions-user plugin-mentions-a" href="/user/vitaliy-dovgan" aria-label="Profile: Vitaliy-Dovgan">@<bdi>Vitaliy-Dovgan</bdi></a> fixed an issue with the ‘strfromhex’ command.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/67260</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/67260</guid><dc:creator><![CDATA[artie-finkelstein]]></dc:creator><pubDate>Mon, 21 Jun 2021 20:06:24 GMT</pubDate></item></channel></rss>