<?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[Suggestion: Option to Close All before Session Load]]></title><description><![CDATA[<p dir="auto">My students sometimes (usually?) forget to close all files before loading a session. Then they get confused about which files are for the current class and which are left behind from the previous one. If there could be a binary option in Settings»Preferences…»MISC. to automatically do a Close All before loading a session, life would be grand!</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/19550/suggestion-option-to-close-all-before-session-load</link><generator>RSS for Node</generator><lastBuildDate>Fri, 15 May 2026 13:16:32 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/19550.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 12 Jun 2020 22:49:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Suggestion: Option to Close All before Session Load on Tue, 16 Jun 2020 17:34:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> My preference would be for the Close All to be executed only when a new session is loaded, and then only optionally (either by a setting or a prompt).  I think, for now I’ll just try to remind them at the beginning of each class to Close All before loading the new session.  Thanks for the suggestions!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55022</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55022</guid><dc:creator><![CDATA[Dwayne Roberts]]></dc:creator><pubDate>Tue, 16 Jun 2020 17:34:45 GMT</pubDate></item><item><title><![CDATA[Reply to Suggestion: Option to Close All before Session Load on Tue, 16 Jun 2020 17:31:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dwayne-roberts" aria-label="Profile: Dwayne-Roberts">@<bdi>Dwayne-Roberts</bdi></a></p>
<blockquote>
<p dir="auto">there’s no Favorites.dat file</p>
</blockquote>
<p dir="auto">Interesting.  I presume you created some “test favorites” before looking for the file?  Maybe restarting N++?  Maybe it needs a reason to create the file before doing so.</p>
<p dir="auto"><code>PluginManager.dll</code> is obsolete and you shouldn’t be using it.  <em>Plugins Admin</em> is the way to go now.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55021</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55021</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 16 Jun 2020 17:31:53 GMT</pubDate></item><item><title><![CDATA[Reply to Suggestion: Option to Close All before Session Load on Tue, 16 Jun 2020 17:27:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> I can’t guarantee they’ll start N++ from scratch in between classes. They may in fact review the work we did together.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55020</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55020</guid><dc:creator><![CDATA[Dwayne Roberts]]></dc:creator><pubDate>Tue, 16 Jun 2020 17:27:41 GMT</pubDate></item><item><title><![CDATA[Reply to Suggestion: Option to Close All before Session Load on Tue, 16 Jun 2020 17:25:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> Curiously, even though I am using the Explorer plug-in, there’s no Favorites.dat file in the plugins (or in the plugins\Explorer) folder. Besides other folders such as APIs, Config, Explorer, NppExport, there’s a PluginManager.dll and an Explorer.dll.  I did a fruitless Windows file search for Favorites.dat.  I’m using N++ v7.8.6 (32-bit).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55018</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55018</guid><dc:creator><![CDATA[Dwayne Roberts]]></dc:creator><pubDate>Tue, 16 Jun 2020 17:25:49 GMT</pubDate></item><item><title><![CDATA[Reply to Suggestion: Option to Close All before Session Load on Tue, 16 Jun 2020 13:15:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dwayne-roberts" aria-label="Profile: Dwayne-Roberts">@<bdi>Dwayne-Roberts</bdi></a> ,</p>
<p dir="auto">… Or another idea, if they need the periodic backup (which requires remembering-session to be left on), then change the Notepad++ shortcut to include the <code>-nosession</code> argument, so when they launch from the shortcut at the beginning of the day, it doesn’t use yesterday’s session.</p>
<p dir="auto">… Or make a the shortcut point to a batch file which deletes <code>%AppData%\Notepad++\session.xml</code> before running notepad++.exe</p>
<p dir="auto">… Or set a Windows Task Scheduler task to delete the session file at logout (or at logon, or at 6am every day, or whatever’s appropriate)</p>
<p dir="auto">… Or you could use an external Perl instance with <a href="https://metacpan.org/pod/Win32::Mechanize::NotepadPlusPlus" rel="nofollow ugc">Win32::Mechanize::NotepadPlusPlus</a> installed, to run the script</p>
<pre><code>use Win32::Mechanize::NotepadPlusPlus qw/:main/;
notepad-&gt;closeAll();
notepad-&gt;menuCommand($NPPIDM{IDM_FILE_LOADSESSION});
</code></pre>
<p dir="auto">… Or you could install one of the scripting Plugins, like PythonScript or LuaScript, using <strong>Plugins &gt; Plugins Admin</strong>, and run a nearly-identical script to the above.</p>
<p dir="auto">Either of those last two could be set up to place an entry in the <strong>Macro</strong> or <strong>Run</strong> menus, and then assign a keyboard shortcut using <strong>Settings &gt; Shortcut Mapper</strong>.  If you want to go down one of those routes, let us know which would be your preferred language, and we can help you through making the menu entry and creating the shortcut.  But the process varies</p>
<p dir="auto"><strong>edits</strong>: clarified a couple of things.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55016</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55016</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 16 Jun 2020 13:15:36 GMT</pubDate></item><item><title><![CDATA[Reply to Suggestion: Option to Close All before Session Load on Tue, 16 Jun 2020 12:55:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dwayne-roberts" aria-label="Profile: Dwayne-Roberts">@<bdi>Dwayne-Roberts</bdi></a> said in <a href="/post/54998">Suggestion: Option to Close All before Session Load</a>:</p>
<blockquote>
<p dir="auto">For each class they run N++ and open the session file corresponding to that particular class.</p>
</blockquote>
<p dir="auto">If I understand correctly, they are starting Notepad++ from scratch every day?  Then why not turn off <strong>Settings &gt; Preferences &gt; Backup &gt; Remember Current Session for next launch</strong>?  Every time Notepad++ gets opened, each student will have an empty set of files (ie, it will just have <code>new 1</code>), then <strong>File &gt; Load Session…</strong> will open just that day’s files (<code>new 1</code> disappears if it hasn’t been modified).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55014</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55014</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 16 Jun 2020 12:55:50 GMT</pubDate></item><item><title><![CDATA[Reply to Suggestion: Option to Close All before Session Load on Tue, 16 Jun 2020 12:35:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dwayne-roberts" aria-label="Profile: Dwayne-Roberts">@<bdi>Dwayne-Roberts</bdi></a></p>
<p dir="auto">Go to the <em>Plugins</em> menu and choose <em>Open Plugins Folder</em>.<br />
In the <em>(Microsoft) Explorer</em> window that opens, open the <em>Config</em> folder that should be present.  <code>Favorites.dat</code> should be in there if you are using the <em>Explorer</em> plugin.</p>
<p dir="auto">Note that I’m just providing some additional info on what <a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> started.  I haven’t tried Eko’s original advice:</p>
<blockquote>
<p dir="auto">the Explorer plugin has a Favorites feature and you can save sessions there that behave exactly the way you want.</p>
</blockquote>
<p dir="auto">to verify that it does indeed behave in the manner you desire.</p>
<p dir="auto">Good luck.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55011</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55011</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 16 Jun 2020 12:35:29 GMT</pubDate></item><item><title><![CDATA[Reply to Suggestion: Option to Close All before Session Load on Tue, 16 Jun 2020 02:07:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> I tried it out, adding three sessions. Is the favorites.dat file created automatically?  Do you know where it’s located?  (I couldn’t find it.)</p>
<p dir="auto">The way I’ve set up my remote class, my students download the course material which includes about a dozen session files onto their PC.  For each class they run N++ and open the session file corresponding to that particular class.  Then we work together remotely with that material.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54998</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54998</guid><dc:creator><![CDATA[Dwayne Roberts]]></dc:creator><pubDate>Tue, 16 Jun 2020 02:07:16 GMT</pubDate></item><item><title><![CDATA[Reply to Suggestion: Option to Close All before Session Load on Sun, 14 Jun 2020 15:04:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> Sounds possible. I’ll check it out. Thanks.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54957</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54957</guid><dc:creator><![CDATA[Dwayne Roberts]]></dc:creator><pubDate>Sun, 14 Jun 2020 15:04:51 GMT</pubDate></item><item><title><![CDATA[Reply to Suggestion: Option to Close All before Session Load on Sun, 14 Jun 2020 12:47:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dwayne-roberts" aria-label="Profile: Dwayne-Roberts">@<bdi>Dwayne-Roberts</bdi></a></p>
<p dir="auto">I think <a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> and I have some uncertainty about the logistics of what you are trying to do on your end, but that’s for you to figure out.</p>
<p dir="auto">I’ll just add that the <em>Explorer</em> plugin stores its “favorites” data in a <code>Favorites.dat</code> file.  Manipulating/placing that file might be key to what you’re wanting to do?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54956</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54956</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 14 Jun 2020 12:47:20 GMT</pubDate></item><item><title><![CDATA[Reply to Suggestion: Option to Close All before Session Load on Sat, 13 Jun 2020 22:38:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> Yes. Each class they’ll load Session1 or Session2 or whatever to get the files for that class.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54950</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54950</guid><dc:creator><![CDATA[Dwayne Roberts]]></dc:creator><pubDate>Sat, 13 Jun 2020 22:38:59 GMT</pubDate></item><item><title><![CDATA[Reply to Suggestion: Option to Close All before Session Load on Sat, 13 Jun 2020 19:01:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dwayne-roberts" aria-label="Profile: Dwayne-Roberts">@<bdi>Dwayne-Roberts</bdi></a></p>
<p dir="auto">I was under the impression that sessions is what you provide as their lessons, isn’t it?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54947</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54947</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Sat, 13 Jun 2020 19:01:12 GMT</pubDate></item><item><title><![CDATA[Reply to Suggestion: Option to Close All before Session Load on Sat, 13 Jun 2020 18:42:38 GMT]]></title><description><![CDATA[<p dir="auto">Sounds possible, but I doubt I can pre-load all their favorites. I’ll look into it deeper.  Thanks!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54946</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54946</guid><dc:creator><![CDATA[Dwayne Roberts]]></dc:creator><pubDate>Sat, 13 Jun 2020 18:42:38 GMT</pubDate></item><item><title><![CDATA[Reply to Suggestion: Option to Close All before Session Load on Sat, 13 Jun 2020 10:15:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dwayne-roberts" aria-label="Profile: Dwayne-Roberts">@<bdi>Dwayne-Roberts</bdi></a></p>
<p dir="auto">I don’t know if this is practical in your case, but the Explorer plugin has a Favorites feature and you can save sessions there that behave exactly the way you want.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54943</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54943</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Sat, 13 Jun 2020 10:15:57 GMT</pubDate></item></channel></rss>