Community
    • Login

    Try using sessions (again)

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 2 Posters 705 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.
    • GubithG
      Gubith
      last edited by

      I’m trying to use sessions to have specific tabs open in each.

      1. How can I tell what session I’m in?
      2. Where’s the ‘recent sessions’ list?
      3. Why does Load-Session open current file folder instead of the sessions folder?
      4. Does anyone use NPP Session-Manger?

      Suggestion: Add “Exit NPP” to File menu. Currently, “exit” closes only the current window.

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

        @gubith ,

        1. Notepad++ doesn’t show you the name of the active session
        2. There isn’t one
        3. There is no such thing as a “sessions folder” in Notepad++'s mind. Notepad++ only keeps track of the most recent successful open or save for determining where to start for the next open or save-as
        4. Yes, there are people who do. No, I am not one. Given your desire for tracking which session you are in and such, I think that using that plugin will be helpful to you.

        Regarding your “suggestion”: File > Exit (the last entry in the File menu) does exit the application; it is File > Close that closes the current tab’s file. Oh, wait, you said “current window” rather than “current file” or “current tab” – that means maybe you are using multi-instance mode: in that case, each Notepad++ instance is a separate instance of the Notepad++ application, and one doesn’t know anything about any other(s) – it’s a separate process, with a separate idea of Exit. (If you have two Windows Notepad windows open, exiting from one will not exit from the other ms-notepad windows; in the same way, if you have two Notepad++ processes running, exiting from one will not exit from the other.)

        GubithG 1 Reply Last reply Reply Quote 1
        • GubithG
          Gubith @PeterJones
          last edited by

          @peterjones I tried the session manager earlier, it started opening new instances constantly, it took some effort to get a cmd prompt open and kill it all. Opening NPP started this again – I had to then manually remove it from the plugin folder.

          So, I tried it again, this time avoiding the ‘auto-open’ option, and it does allow proper session management. It seems. So far.

          I added this to the context:

          <Item id="0"  ItemNameAs="========================" />
          <Item PluginEntryName="Session Manager" PluginCommandItemName="Settings..." ItemNameAs="Sessions Manager" />
          <Item PluginEntryName="Session Manager" PluginCommandItemName="Sessions..." ItemNameAs="Sessions..." />
          <Item PluginEntryName="Session Manager" PluginCommandItemName="Save current" ItemNameAs="Save current" />
          <Item PluginEntryName="Session Manager" PluginCommandItemName="Load previous" ItemNameAs="Load previous" />
          

          But I found some issues…
          When I open a new session, it labels the current window with that session name, then it opens a new window with with wrong tabs. I think whats happening is “sess1” becomes “sess2” when a new session is loaded, so it’s saved as sess2… it’s a big mess.

          I can’t recommend using sessions in Notepad++.

          GubithG 1 Reply Last reply Reply Quote 0
          • GubithG
            Gubith @Gubith
            last edited by

            I was able to get this working…

            Sesion-Manager-Settings.jpg

            Sesion-Manager-Sessions.jpg

            Sesion-Manager-Multi-Instance.jpg

            Sesion-Manager-Backup.jpg

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