Exclusive Session file group
-
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!
-
@Jagganath69
If you have a set of files that you frequently open together, you might consider using project panelsTBH, 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.
-
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 commandnotepad++.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
andC
-
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
andF
-
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 filesA
,B
andC
will ONLY be opened -
If you run the command
notepad++.exe -nosession -openSession Second.ses
, the three filesD
,F
andF
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
-