Notepad++ dropping tabs when files are moved between directories



  • 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?



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



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