Community
    • Login

    Notepad++ dropping tabs when files are moved between directories

    Scheduled Pinned Locked Moved General Discussion
    tabsdirectorybackup
    3 Posts 3 Posters 979 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 LeggeC
      C Legge
      last edited by

      I have my Notepad++ preferences set for backup, checking the options to remember current session for next launch, enable session snapshot and periodic backup, and simple backup. My default directory is set to follow current document.

      Recently I moved several files to different locations in my Windows 10 directory tree. When I launched Notepad++, the tabs to those documents were lost.

      Am I misunderstanding how these settings options are intended to function?

      Claudia FrankC Scott SumnerS 2 Replies Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @C Legge
        last edited by

        @C-Legge

        Am I misunderstanding how these settings options are intended to function?

        Not sure what you expected - if you move files then they are, obviously, not anymore
        at the place npp was aware of. Npp has no hidden process running which constantly
        scans what the user does to update its internal list of files being in use by the user.

        It simply stores that information in an xml file called session.xml.
        Upon startup it reads this xml and opens the found files.

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 4
        • Scott SumnerS
          Scott Sumner @C Legge
          last edited by

          @C-Legge

          Solution to your problem: Use Notepad++ to move the files instead of doing it an external way. Then Notepad++ won’t lose track of your file tabs. Easiest way: Right-click a file’s tab and choose Rename. Then navigate to the desired place in the directory tree and click Save.

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