Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

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

    Help wanted · · · – – – · · ·
    3
    9
    179
    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.
    • Cletos
      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 Kilborn PeterJones 2 Replies Last reply Reply Quote 0
      • Alan Kilborn
        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
        • PeterJones
          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++

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

            I created issue #12079

            1 Reply Last reply Reply Quote 0
            • Cletos
              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 Kilborn 1 Reply Last reply Reply Quote 0
              • Alan Kilborn
                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
                • Cletos
                  Cletos last edited by

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

                  PeterJones 1 Reply Last reply Reply Quote 0
                  • PeterJones
                    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
                    • Cletos
                      Cletos last edited by

                      Ah, sorry for my misunderstanding.

                      OK, Thank you very much!

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Copyright © 2014 NodeBB Forums | Contributors