Any thoughts on adding “Previous Sessions” to NPP? That way we wouldn’t have to traverse the file system every time we want to open a previous session.
menu File -> Save Session...respectively
menu File -> Load Session...?
menu Settings -> Preferences... -> Backup -> Session snapshot and periodic backup -> Remember current session for next launch?
@mikeguyre You can try out the session manager plug-in. One of its features is “Load previous session” so you can switch between 2 sessions very quickly.
@dinkumoil The File open dialog for
Load Sessiondefaults to the folder of the last file you had opened so you have to navigate to find the session file. I use multiple sessions depending on what I am working on so your second suggestion wouldn’t work for me.
If you use the session manager plug-in, then you don’t ever use
Save Sessionin NPP’s
Filemenu. You use the plug-in’s commands. I put some of them in my context menu, so that I can right-click and choose
Load Previous Sessionas one of my choices:
<Item PluginEntryName="Session Manager" PluginCommandItemName="Sessions..." ItemNameAs="Session Dialog"/> <Item PluginEntryName="Session Manager" PluginCommandItemName="Save current" ItemNameAs="Save Session"/> <Item PluginEntryName="Session Manager" PluginCommandItemName="Load previous" ItemNameAs="Load Previous Session"/>
The File open dialog for Load Session defaults to the folder of the last file you had opened so you have to navigate to find the session file.
Yes, this is annoying, but if you keep all of your session config files in one folder you can put a link to that folder in your Windows Favorites so that it is only a few extra navigation clicks away.
Jim’s solution sounds better…try it.