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
DOSconsole window, run the commandnotepad++.exe -nosession -
Note that I personnaly chose the
sesextension as the session file extension (Settings > Preferences > MISC.) -
Open, let’s say, three files, named
A,BandC -
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,EandF -
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,BandCwill ONLY be opened -
If you run the command
notepad++.exe -nosession -openSession Second.ses, the three filesD,FandFwill 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
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login