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.4k 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.
    • CletosC
      Cletos
      last edited by

      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?

      Alan KilbornA PeterJonesP 2 Replies Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Cletos
        last edited by

        @Cletos

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

        1 Reply Last reply Reply Quote 0
        • PeterJonesP
          PeterJones @Cletos
          last edited by PeterJones

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

          PeterJonesP 1 Reply Last reply Reply Quote 0
          • PeterJonesP
            PeterJones @PeterJones
            last edited by

            I created issue #12079

            1 Reply Last reply Reply Quote 0
            • CletosC
              Cletos
              last edited by PeterJones

              OK, thank you very much.

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

              Alan KilbornA 1 Reply Last reply Reply Quote 0
              • Alan KilbornA
                Alan Kilborn @Cletos
                last edited by

                @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
                • CletosC
                  Cletos
                  last edited by

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

                  PeterJonesP 1 Reply Last reply Reply Quote 0
                  • PeterJonesP
                    PeterJones @Cletos
                    last edited by

                    @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
                    • CletosC
                      Cletos
                      last edited by

                      Ah, sorry for my misunderstanding.

                      OK, Thank you very much!

                      1 Reply Last reply Reply Quote 0
                      • Richard HydrickR
                        Richard Hydrick
                        last edited by

                        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