How to find out what txt files were open in the last session?
-
When I usually open Notepad all of the files being opened before (closing it) are opened again.
I have 10 files open in Notepad. I close Notepad. I plug off the drive where these txt files are stored. I open Notepad and the files are not opened because the drive is plugged off. I close Notepad, I plug in the drive and open Notepad. The 10 txt files are not shown / opened. How can I find out which txt files were open before? Or can I restore them in Notepad? Reopen them?
-
Sorry but the answer is pretty much “no” to everything you’ve asked.
-
@Cletos ,
When you open Notepad++, it checks for the existence of all the files in the active session. Any file which doesn’t exist cannot be opened, so Notepad++ does not open them.
When you close Notepad++, it saves the session as the list of files that are actually open. Those files that were not opened because they do not exist are not open (obviously), so they are not saved as part of the active session. At this point in the sequence, Notepad++ no longer has any configuration file with the names of those files.
I had hoped that when it finds a non-existent file listed in the session file, it would at least put that file in the recent-files-list, but it doesn’t… I will file a bug report for that.
So there isn’t any place to see what files Notepad++ used to have open. Sorry.
If you want manual control of your sessions in the future, I might recommend using manual sessions, and maybe even the Session Manager plugin. Or if your files are grouped as “projects”, you might want to use the Project Panel feature in Notepad++
-
I created issue #12079
-
OK, thank you very much.
Sorry for asking this, how / where can I download those plug ins? Apparently not here:
-
@Cletos said in How to find out what txt files were open in the last session?:
Apparently not here
Why not? If you scroll down you should see the Session Manager plugin (although I have my concerns about that one due to its age). No other plugins were mentioned that I saw in Peter’s posting.
-
Strange, no explanation why I had missed that, sorry. But I cannot find the other plug ins Peter mentioned.
-
@Cletos said in How to find out what txt files were open in the last session?:
But I cannot find the other plug ins Peter mentioned.
I didn’t mention any other plugins.
I recommended manual sessions, which are a built-in feature of Notepad++, and linked to the usermanual entry on sessions. I recommended the Project Panel, which is a built-in feature of Notepad++, and linked to the usermanual entry on Project Panel.
-
Ah, sorry for my misunderstanding.
OK, Thank you very much!