<?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[Make &quot;Run..&quot; Window keep the text entered in textbar after closing Notepad++]]></title><description><![CDATA[<p dir="auto">Hello<br />
I love programming Python in Notepad++ but something i don’t love is having to select the path of the file every time i close Notepad++ as i made a batch file that gets the filename of my current file in Notepad++ and runs it<br />
Is there a way to make Notepad++ use a saved run shortcut as default or just make it not clearing the Textbox so i don’t have to enter the filepath every time i reopen Notepad++?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/16237/make-run-window-keep-the-text-entered-in-textbar-after-closing-notepad</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 16:24:48 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/16237.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 29 Aug 2018 08:29:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Make &quot;Run..&quot; Window keep the text entered in textbar after closing Notepad++ on Wed, 29 Aug 2018 13:56:16 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 />
Pretty good answer! I’d guess that is the closest i would get unless sending a request to add it in as a “feature”</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34445</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34445</guid><dc:creator><![CDATA[Stefan Huus Gregersen]]></dc:creator><pubDate>Wed, 29 Aug 2018 13:56:16 GMT</pubDate></item><item><title><![CDATA[Reply to Make &quot;Run..&quot; Window keep the text entered in textbar after closing Notepad++ on Wed, 29 Aug 2018 13:46:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/374">@Scott-Sumner</a>,</p>
<p dir="auto">Yeah, you said everything I was working on for my response, but much more succinctly.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/12907">@Stefan-Huus-Gregersen</a> ,</p>
<p dir="auto">As for “the “Feature request” … seems to be locked”.  Yes, the <a href="https://notepad-plus-plus.org/community/topic/15741/faq-desk-feature-request" rel="nofollow ugc">FAQ thread</a> is locked.  But as the text of the FAQ itself says, this forum is not the place for feature requests.  The place for feature requests is <em>linked</em> in that FAQ.  So follow that link, and you can make your feature request <em>there</em>.</p>
<p dir="auto">Thanks for the additional details: it helped Scott give an excellent response.  I had been writing my response assuming that you didn’t know about the <code>"$(FULL_CURRENT_PATH)"</code>, so I appreciate that you posted that update, so I wouldn’t waste your time with things you already knew.</p>
<p dir="auto">You might also consider the <a href="http://downloads.sourceforge.net/project/npp-plugins/" rel="nofollow ugc">NppExec plugin</a> (available using that link, or thru the plugin manager), which was mentioned in <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3662">@Claudia-Frank</a>’s link, and would allow you to build a batch file that gets run in a pane of the Notepad++ GUI, rather than spawning an external <code>cmd.exe</code> window.  That gets rid of the need for the “pause” and “hit any key…”, because it gets captured into an interactive sub-window of NPP.</p>
<p dir="auto">===</p>
<p dir="auto">Oh, i see your update.  If you want F5 to be run-current-file, you can just edit the shortcuts.</p>
<p dir="auto">** Settings &gt; Shortcut Mapper &gt; Macros &gt; Run With Python** (or whatever you named your shortcut before): change it to <code>F5</code>.  Before you hit OK, it will say “conflict found”, and below will say something like “Main Menu | 269 Run…”.  Make note of that, then hit OK.  Go to the <strong>Main Menu</strong> tab, and replace the normal <strong>Run</strong> shortcut with Ctrl+F5.  Swap complete, F5 will do what you want.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34442</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34442</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 29 Aug 2018 13:46:44 GMT</pubDate></item><item><title><![CDATA[Reply to Make &quot;Run..&quot; Window keep the text entered in textbar after closing Notepad++ on Wed, 29 Aug 2018 13:42:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/374">@Scott-Sumner</a><br />
I am currently using the CTRl + F5 method but it just sucks using it when most of the software that i use for programming uses just F5 to execute<br />
I know it actually is more inefficient doing F5 only than CTRL + F5 because of the dialog window but i also just find it more… Standard to do the F5</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34441</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34441</guid><dc:creator><![CDATA[Stefan Huus Gregersen]]></dc:creator><pubDate>Wed, 29 Aug 2018 13:42:22 GMT</pubDate></item><item><title><![CDATA[Reply to Make &quot;Run..&quot; Window keep the text entered in textbar after closing Notepad++ on Wed, 29 Aug 2018 13:29:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/12907">@Stefan-Huus-Gregersen</a></p>
<p dir="auto">maybe <a href="https://notepad-plus-plus.org/community/topic/11045/fail-to-setup-notepad-and-python/2" rel="nofollow ugc">this link</a> is helpful for you as well.</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34438</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34438</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Wed, 29 Aug 2018 13:29:52 GMT</pubDate></item><item><title><![CDATA[Reply to Make &quot;Run..&quot; Window keep the text entered in textbar after closing Notepad++ on Wed, 29 Aug 2018 13:22:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/12907">@Stefan-Huus-Gregersen</a></p>
<p dir="auto">Okay, so there are many approaches to this…and probably <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a> is better at this than I am…but perhaps the very simplest is to Save your Run box command (<em><strong>D:\Python_scripts\notepad++runfile\runPythonScript.bat “$(FULL_CURRENT_PATH)”</strong></em>), giving it a name (“<em>Python Run Current File</em>”…?)and possibly a keycombination.</p>
<p dir="auto">This has the added benefit of chopping 1 step off at run time…with your existing approach you are presented with the Run box and you have to OK it…with the above approach that is skipped.</p>
<p dir="auto">Of course, this may be what you meant above when you were talking about “CTRL + F5”, but I don’t see why saving the command (which never changes) would be objectionable…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34437</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34437</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Wed, 29 Aug 2018 13:22:50 GMT</pubDate></item><item><title><![CDATA[Reply to Make &quot;Run..&quot; Window keep the text entered in textbar after closing Notepad++ on Wed, 29 Aug 2018 13:02:09 GMT]]></title><description><![CDATA[<p dir="auto">Well let me explain then<br />
I got a file located at D:\Python_scripts\notepad++runfile\runPythonScript.bat<br />
What it does is it receives an argument that is given when running the bat file<br />
for example. runPythonScript.bat “C:/MyPythonScript.py”<br />
Then it takes that argument and run python inside that exact same Window (py C:/MyPythonScript.py)<br />
And then when my Python script crashes it has a “pause” in the batch file so i can see the error<br />
And the argument that i use comes from the Notepad++ “$(FULL_CURRENT_PATH)” function that you can use which gives you the exact path of the current open file in Notepad++</p>
<p dir="auto">Workflow example:<br />
Pressing the run button in Notepad++ with " D:\Python_scripts\notepad++runfile\runPythonScript.bat  “$(FULL_CURRENT_PATH)” " written in the textbox<br />
Bat file opens<br />
It gets the filepath of the current open file in Notepad++ from “$(FULL_CURRENT_PATH)”<br />
Then opens the python file by writing py (and then the path that it receives)<br />
Now my Python script crashes<br />
Then it pauses the bat so it wont continue so i can read the error that occured</p>
<p dir="auto">Does that help you understand what i am doing? :)</p>
<p dir="auto">Thanks for the recommendation of the “Feature request” but it kinda seems to be locked so i can’t use it hmm…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34435</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34435</guid><dc:creator><![CDATA[Stefan Huus Gregersen]]></dc:creator><pubDate>Wed, 29 Aug 2018 13:02:09 GMT</pubDate></item><item><title><![CDATA[Reply to Make &quot;Run..&quot; Window keep the text entered in textbar after closing Notepad++ on Wed, 29 Aug 2018 12:25:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/12907">@Stefan-Huus-Gregersen</a></p>
<p dir="auto">Well…I meant describe more of your overall workflow…you hint at Python and a batch file (which somehow gets the name of your N++ current file)…but to offer up solutions–to your generic problem, not necessarily your very specific one–more details are needed.</p>
<p dir="auto">However, since you seem to be fixated on “gotta have the Run box keep the text over Notepad++ runs”, no one can offer up much (unless someone has an exact cure for that…anyone?) in the form of a “adjust your workflow” type solution, which may in fact lead you to think, “Why was I ever doing this with the Run box anyway?”.</p>
<p dir="auto">But I understand that you want what you want.  So I will kindly point you to the proper way to make feature requests for Notepad++ and that is <a href="https://notepad-plus-plus.org/community/topic/15741/faq-desk-feature-request" rel="nofollow ugc">here</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34434</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34434</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Wed, 29 Aug 2018 12:25:25 GMT</pubDate></item><item><title><![CDATA[Reply to Make &quot;Run..&quot; Window keep the text entered in textbar after closing Notepad++ on Wed, 29 Aug 2018 12:03:51 GMT]]></title><description><![CDATA[<p dir="auto">There is. Creating a shortcut so you press CTRL + F5, but that is just annoying when the function is already in the software. I’d rather know the solution that makes the textbox not clearing when opening the software again .<br />
I hope that the developers of notepad++ sees this and implement so it never clears the textbox when reopening the software</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34433</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34433</guid><dc:creator><![CDATA[Stefan Huus Gregersen]]></dc:creator><pubDate>Wed, 29 Aug 2018 12:03:51 GMT</pubDate></item><item><title><![CDATA[Reply to Make &quot;Run..&quot; Window keep the text entered in textbar after closing Notepad++ on Wed, 29 Aug 2018 11:49:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/12907">@Stefan-Huus-Gregersen</a></p>
<p dir="auto">It would probably help if you could describe a bit more this workflow you only hint at.  Then there could be alternate solutions rather than just the one you’ve requested.  Walk us through what you do and I’ll be a good solution comes out of it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34432</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34432</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Wed, 29 Aug 2018 11:49:03 GMT</pubDate></item></channel></rss>