Community
    • Login

    Exclusive Session file group

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 3 Posters 213 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.
    • Jagganath69J
      Jagganath69
      last edited by

      I’m at a loss of how to do the settings. This is what I want to do:
      I have a first session with files A,B,C & D open.
      I have a second session with files A,B,E & F open.
      I CLOSE N++ (no other instance open) while editing my first group A,B, C & D.
      When I open the 2nd session (by double clicking the npp session file) , it opens ALL FILES from A thru F!!!
      What is the settings I should have so it opens up only A,B,E & F and NO OTHER FILES ? I tried both MONO & non-MONO instance, tried with .npp as session ext.

      Hope you can help me out, and thanks!

      Mark OlsonM 1 Reply Last reply Reply Quote 0
      • Mark OlsonM
        Mark Olson @Jagganath69
        last edited by

        @Jagganath69
        If you have a set of files that you frequently open together, you might consider using project panels

        TBH, the behavior you’re describing sounds desirable in most cases, because I wouldn’t want all of my files that were open in a secondary instance to be closed if I closed and reopened NPP.

        1 Reply Last reply Reply Quote 1
        • guy038G
          guy038
          last edited by guy038

          Hello, @Jagganath69, @mark-olson and All,

          @Jagganath69, here is a way to get exclusive session group of files :

          • In a DOS console window, run the command notepad++.exe -nosession

          • Note that I personnaly chose the ses extension as the session file extension ( Settings > Preferences > MISC. )

          • Open, let’s say, three files, named A, B and C

          • Use the File > Save session... option

          • Save the current session, for instance, as First.ses

          • Close Notepad++.exe

          • Restart the same command notepad++.exe -nosession

          • Open, this time, three other files, named D, E and F

          • Use the File > Save session... option

          • Save the current session, for instance, as Second.ses

          • Close Notepad++.exe

          • From now on :

            • If you run the command notepad++.exe -nosession -openSession First.ses, the three files A, B and C will ONLY be opened

            • If you run the command notepad++.exe -nosession -openSession Second.ses, the three files D, F and F will ONLY be opened

            • If you run the command Notepad++.exe, you should see all the files which were present in the current session, when you last closed notepad++


          Of course, when you simply start notepad++.exe, the current session may contain :

          • Files which are absent of all the particular sessions First.ses, Second.ses, …

          • Files which are present in particular sessions ONLY

          • Files which are present in all the particular sessions First.ses, Second.ses, …

          Best Regards,

          guy038

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