SessionManagerPlugin: Save sessions together with their files?

  • Hello! Is there a way to make this plugin save the relevant session in the same directive as its connected text file?

    Currently, my sessions are being saved to C:\Users[MY-USER]\AppData\Roaming\Notepad++\plugins\Config\SessionMgr\sessions\ by default. While it’s great to have sessions automatically backed up, I would prefer to have a session together with the file it’s connected with.

    Thanks in advance!

  • @Kardo-Rostam ,

    Sorry, I’m not a SessionManager plugin user… but I downloaded a copy in a portable NPP and played around a bit. I do not think that SessionManager has the feature you describe . I can think of two good reasons why it wouldn’t, off the top of my head:

    1. a session often contains more than one file, and those files can come from a variety of locations – even across different drives / filesystems – so where is “with the file it’s connected with” be?

    2. from a practical standpoint, do you want the SessionManager Plugin to have to search your whole hard drive for every time it wants to populate the list of available sessions?

      • It has to build that list from somewhere; when it only has to look in the single directory defined in Plugins > Session Manager > Settings, it’s really easy to build the list of sessions. If it didn’t have that, it would have to scan your whole computer to try to find all the sessions.
      • I guess in theory, the plugin source code could be re-written so it has a master list of session files in one known location, but that the individual files can be stored anywhere; then, as long as you never moved those session files with Windows Explorer or other outside tools, it could work. Unfortunately, per the plugin’s official homepage, the original author has stopped development on the plugin; chcg made a 64 bit release a few years later, but it’s been 3 years since even that one was updated.

    Alternative: Notepad++'s builtin Sessions feature has the default session.xml stored in %AppData%\notepad++\ … but it has the File menu’s Save Session and Load Session – and that kind of session can be stored anywhere, as long as you know where the session file is. With that feature, you could store the session file with the file(s) it opens.

Log in to reply