<?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[Restore closed window?]]></title><description><![CDATA[<p dir="auto">I dragged a tab from my main N++ window to create two different N++ windows. I then accidentally closed the main N++ window with all my (unsaved) tabs. I still have the ‘new’ window open. Can I get the closed one back somehow? If I do CTRL-SHIFT-T it only opens closed tabs on the new window I opened. None from the main window.</p>
<p dir="auto">I had ‘Remember current session for next launch’ enabled but backups were disabled. I haven’t tried closing the new window too as I expect opening N++ again then will just reopen the ‘new’ window.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/21772/restore-closed-window</link><generator>RSS for Node</generator><lastBuildDate>Tue, 12 May 2026 18:33:41 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/21772.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 03 Sep 2021 13:39:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Restore closed window? on Wed, 14 May 2025 01:03:25 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></p>
<p dir="auto">4 years later, and option 1 just saved me some grief.</p>
<p dir="auto">I had 2 sessions open and autoindent started misbehaving, so I closed the window in which I had about 40 files open, and realized it, just too late.  Re-opening one of the files, of course, opened it in the other session, where I had 1 file open.  Luckily, the session.xml file had the large session, so all is good.</p>
<p dir="auto">It’s not that my files were unsaved, it’s just that the session was set up in a convenient way for the work that I was doing.</p>
<p dir="auto">Cheers for a helpful solution!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/101605</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/101605</guid><dc:creator><![CDATA[Andrew 1]]></dc:creator><pubDate>Wed, 14 May 2025 01:03:25 GMT</pubDate></item><item><title><![CDATA[Reply to Restore closed window? on Sun, 05 Sep 2021 07:37:06 GMT]]></title><description><![CDATA[<p dir="auto">I found a bunch of files in backup folder so I was gonna try opening those. But now when I reopened N++ (after I had closed instance-B as well), everything from instance-A returned (!). So I guess I hadn’t done anything in session-B after I closed session-A. I exited session-B via File - Exit but apparently that didn’t overwrite session.xml. Phew. Installing AutoSave now. Thanks for the help! :)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/69492</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/69492</guid><dc:creator><![CDATA[sepodele]]></dc:creator><pubDate>Sun, 05 Sep 2021 07:37:06 GMT</pubDate></item><item><title><![CDATA[Reply to Restore closed window? on Sat, 04 Sep 2021 18:02:17 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> said in <a href="/post/69480">Restore closed window?</a>:</p>
<blockquote>
<p dir="auto">this recent post describes how the various AutoSave settings affect its auto-saves and backups</p>
</blockquote>
<p dir="auto">I had forgotten that I had converted that to an entry worthy of a FAQ, but never posted it.<br />
So I did another read through, and then <a href="https://community.notepad-plus-plus.org/topic/21782/faq-desk-periodic-backup-vs-autosave-plugin">posted it as a FAQ</a>.  The FAQ version is a bit more generic than the reply I previously linked to.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/69483</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/69483</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sat, 04 Sep 2021 18:02:17 GMT</pubDate></item><item><title><![CDATA[Reply to Restore closed window? on Sat, 04 Sep 2021 17:42:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sepodele" aria-label="Profile: sepodele">@<bdi>sepodele</bdi></a> ,</p>
<p dir="auto">You are a little unclear in your phrasing.  You mention unsaved files, but say you only have “remember current session for next launch” but “backups were disabled”.  If by “backups” you mean “backup on save” feature, then that’s not a problem.  If by “backups” you mean “Enable session snapshot and periodic backup” was disabled, you’re out of luck.</p>
<p dir="auto">Since you don’t mention that closing Notepad++ asked you to save the unsaved files (which it would have done if you had “Enable session snapshot and periodic backup” turned off), then I am hoping for your sake that it was really on.  If it was, then there’s still a chance of recovering, depending on what you’ve done since then:</p>
<p dir="auto">Assume instance-A of Notepad++ had unsaved files <code>new1</code>, <code>new2</code>, and <code>new3</code>; and instance-B of Notepad++ has <code>new1</code>. At this point, if you closed instance-A, it wrote the current session file to <code>%AppData%\Notepad++\session.xml</code> (<a href="https://community.notepad-plus-plus.org/topic/15740/faq-desk-what-is-appdata" title="FAQ: What is %AppData%?">🛈</a>).  If you have done anything in instance-B that would write the session.xml (exiting would do it; but maybe something else as well), it would have <em>overwritten</em> <code>session.xml</code> with the new data – at which point, the instance-A <code>session.xml</code> is gone, and half of your possibility is gone.  <em>However</em>, because you did not ever technically <em>close</em> those unsaved files, the chances are that the periodic backup files still exist in <code>%AppData%\Notepad++\backup\</code></p>
<p dir="auto">The steps I would take, assuming you haven’t closed <code>instance-B</code> in the last day:</p>
<ol>
<li>You could try <strong>File &gt; Load Session</strong>, then go try <code>%AppData%\Notepad++\session.xml</code> – it might reload your unsaved files at that point</li>
<li>If it doesn’t, try <strong>File &gt; Open</strong>, then <code>%AppData%\Notepad++\backup\</code> and open all the files in that directory; for your sake, I hope those files exist.</li>
</ol>
<p dir="auto">Then, I would <em>highly</em> recommend you save the files to a known name.  If you are unwilling to do that, then I at least recommend you install AutoSave plugin (<strong>Plugins &gt; Plugins Admin</strong> and install AutoSave), then configure it to do AutoSave of your unnamed <em>and</em> named files (this <a href="https://community.notepad-plus-plus.org/post/67301">recent post</a> describes how the various AutoSave settings affect its auto-saves and backups – if you don’t configure it, AutoSave defaults to <em>doing <strong>nothing</strong></em>, so just installing the plugin is <em>not</em> sufficient to get AutoSave protection).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/69480</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/69480</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sat, 04 Sep 2021 17:42:04 GMT</pubDate></item></channel></rss>