• Login
Community
  • Login

How to find out what txt files were open in the last session?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
10 Posts 4 Posters 1.3k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C
    Cletos
    last edited by Sep 1, 2022, 9:35 AM

    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?

    A P 2 Replies Last reply Sep 1, 2022, 1:19 PM Reply Quote 0
    • A
      Alan Kilborn @Cletos
      last edited by Sep 1, 2022, 1:19 PM

      @Cletos

      Sorry but the answer is pretty much “no” to everything you’ve asked.

      1 Reply Last reply Reply Quote 0
      • P
        PeterJones @Cletos
        last edited by PeterJones Sep 1, 2022, 1:22 PM Sep 1, 2022, 1:22 PM

        @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++

        P 1 Reply Last reply Sep 1, 2022, 2:12 PM Reply Quote 0
        • P
          PeterJones @PeterJones
          last edited by Sep 1, 2022, 2:12 PM

          I created issue #12079

          1 Reply Last reply Reply Quote 0
          • C
            Cletos
            last edited by PeterJones Sep 1, 2022, 6:18 PM Sep 1, 2022, 4:01 PM

            OK, thank you very much.

            Sorry for asking this, how / where can I download those plug ins? Apparently not here:

            A 1 Reply Last reply Sep 1, 2022, 5:13 PM Reply Quote 0
            • A
              Alan Kilborn @Cletos
              last edited by Sep 1, 2022, 5:13 PM

              @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.

              1 Reply Last reply Reply Quote 0
              • C
                Cletos
                last edited by Sep 2, 2022, 6:32 AM

                Strange, no explanation why I had missed that, sorry. But I cannot find the other plug ins Peter mentioned.

                P 1 Reply Last reply Sep 2, 2022, 12:49 PM Reply Quote 0
                • P
                  PeterJones @Cletos
                  last edited by Sep 2, 2022, 12:49 PM

                  @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.

                  1 Reply Last reply Reply Quote 1
                  • C
                    Cletos
                    last edited by Sep 3, 2022, 6:32 AM

                    Ah, sorry for my misunderstanding.

                    OK, Thank you very much!

                    1 Reply Last reply Reply Quote 0
                    • R
                      Richard Hydrick
                      last edited by Nov 26, 2024, 9:51 PM

                      First, open the Sessions.xml within the below folder and it will show you all the files that were open. In my case it was just before my computer crashed as I just recovered from a failed TPM on my computer but the drive was still good.
                      (*C:\Users\Username\AppData\Roaming\Notepad++*)

                      If you can gain access to your old drive copy the folder backup and move to your new instance of Notepad++ copying to the same file location above, then select all documents within and open with Notepad++ and you will have all your saved and unsaved notes.

                      Hope this helps.
                      Richard

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      The Community of users of the Notepad++ text editor.
                      Powered by NodeBB | Contributors