Personally.. I like having the "launch" key" close to the key that brings up the submenu. (S,C) or (M,O) would work.
Also.. I am used to "Select All" being assocaited with "A" becuase it's global shortcut is CTRL+A.
It's so cool, these XML config files. So easy to tweak, and robust.
I had gotten used to "alt-p,s,s". But now, if I have my hand on the mouse, it's convenient to just select with the mouse. Yes, indeed, NPP's customization features allow each person to set it up the way they like it. Yet another great thing about NPP :)
I had gotten used to "alt-p,s,s"
I had gotten used to "alt-p,s,s"
I was trying to get across that this would not work if there was another item on the menu (in this case the "Plugins" menu,) that began with "S".
In my case I also have the "Spell Checker" plugin installed, which ALSO has set "S" to be IT's menu accelerator key. So pressing "S" the second time, just moves down to "Spell Checker", instead of select an "S" item from the "Session Manager" sub-menu.
I wonder if there is a list of accelerator keys that are already used for the "Plugins" menu ?? (I see that "E" and "H" are already used.)
Ah - yes you are right
It seems that the current session never changes for me. It always says "default". Whenever I open a different session, it still says "default" and saving the open files to the session doesn't actually save it to the session I last selected.
Hi, sorry for the late reply.
Just curious… what version of Notepad++ do you have and what version of Windows are you running?
I'm not sure what to make of the problem you've described. Maybe Notepad++ doesn't have permission to write in the config folders? or maybe there's some kind of conflict about the location of the config folders. Here's some notes on that…
For plugin configuration Notepad++ will use one of the following locations:
To inform Notepad++ to use #2 then create an empty file, named "doLocalConf.xml", in the Notepad++ installation folder.
Many thanks for the superb plugin!
Often I run NPP at 2 instances and more.
In each of the instances open its session.
It would be good the name of the current session is displayed in the NPP,
such as Title, before the file name:
[SESSION_NAME]FILE_FULL_PATH - Notepad++
Now, when i switch between instances by alt ~, using vista_switcher
I can get the convenience of this list for selection:
[t test_session1] C:\TEST\my_test_file1.txt - Notepad++
[w work_session1] C:\WORK\my_work_file1.txt - Notepad++
[m misc_session1] C:\MISC\my_misc_file1.txt - Notepad++
(For 3 instances, Title might look like, for example)
Hi light2some, thanks very much! I'm glad you like SessionManager. You have a good suggestion but unless I'm missing something it doesn't look like that can be done from within a plugin. I'm experimenting with a new feature which will display the name of the current session in NPP's status bar in place of the "file type". This will be configurable in SessionManager's Settings dialog. As soon as I have it ready I'll make it available for download.
Actually, I see that it is possible to change the titlebar text from a plugin. I'm experimenting with it.
Session Manager v0.7 is now available at my site. It is not yet available via Plugin Manager because I'd like for a few people to test it first. If anyone posts bug reports (and I really appreciate so many people helping with this) then please let us know your OS, whether it is 32 or 64 bit, and your Notepad++ version. Thanks!
Grand respect for you for the dream that has comes true!
I note small bug (on screenshot below):
File has unsaved changes - SESSION_NAME is gone...
It will be good put asterisk before (or after) the [SESSION_NAME]:
*[t test_session1] c:\NPP_TEST\TEST\my_test_file1.txt - Notepad++
Hi light2some, thank you very much! I will follow-up on the issue you have reported.
I've implemented a work-around for the issue reported by light2some. available here
Session Manager 0.7.1.20130120
- Issue reported by light2some: When a file is first changed the titlebar text does not get the session prefix. Fix: Update the titlebar text one second after the SCN_SAVEPOINTLEFT Scintilla event (NPP doesn't prepend the "*" until after the event).
- Upgraded header files from NPP v6.2.3: menuCmdID.h, Notepad_plus_msgs.h, PluginInterface.h and Scintilla.h.
- [Minor NPP bug?] It's not a problem but I noticed that, in Notepad_plus_msgs.h, NPPN_DOCORDERCHANGED and NPPN_READONLYCHANGED have the same value (NPPN_FIRST + 16). Also, I cannot detect either of these events in my plugin code, even tho NPPM_INTERNAL_DOCORDERCHANGED seems to be handled correctly in the NPP source code.
Many thanks for the good feature!
I have a one suggestion for V1 release:
Add Editbox above the SessionList for reduce rowcount of SessionList by typing any part of SessionName.
Similar Editbox was implemented in the "FileSwitcher" plugin
Mike, thanks for this plugin! I like it very much.
I would like to suggest some features (my inspiration comes from Firefox Addon "Session Manager") for future releases.
Also, I would like to describe my problem from yesterday.
I had about 30 tabs in split view mode and I needed another instance for some temporary file. Later I needed to restart my computer. First instance (30 tabs) exited first, and second instance had some unsaved changes so it asked me if I wanted to save (I didn't save).
I restarted, opened Notepad++ and it opened only my second instance (2 tabs). I was sure that SessionManager has AutoSave enabled so I didn't worry, but as it turns out my session (30 tabs) was lost.
Maybe I didn't setup something the right way. I don't know.
Could you tell me if this use case/behavior is supported or not?
For saving of tabs independently between instances (of NPP),
each instance of NPP should load a dedicated session.
In your case, for example, may be two sessions:
OK! I tried that. When I open notepad++ again files are loaded all right but with "wrong" session in title.
I'm expecting: [session_1_30tabs] path/to/file.ext
I'm getting: [default] path/to/file.ext
You should make loading of session via Plugin menu (Sessions -> button "Load") only
and switch off native NPP setting "Remember current session for next launch".
i use the session manager and the Doc Switcher, everytime i load a session, there is a ghostfile "new 1" there. If i click on it npp jumps to another file and i cant delete this file.
is there a chance session take to the toolbar with icons, so you can quick switch between your favorite sessions ?
I just installed 0.7.1. I love having the session name in the title bar. Very cool to help distinguish multiple copies of NPP.
Hi everyone! Sorry for my late reply. I'm glad you like Session Manager, thank you! I'm looking over the new posts now and will start thinking about how to implement your suggestions.
For select my session, i use explorer and when i double click on the session file
windows launch the npp using the launch command in registry.
Actually : "C:\Program Files\Notepad++\notepad++.exe" "%1" -multiInst -nosession
Is it possible for you to retrieve the session name and make you're plugin link to it ?
If you want we can modify the lauch command like :
"C:\Program Files\Notepad++\notepad++.exe" "%1" sessmgr="%1" -multiInst -nosession
what do you thing about this ? Do you thing it's a possible amelioration ?
I too would benefit from a command line way to invoke a session. I used to do that before installing the Session Manager plugin. I like to have aliases in Cygwin that let me launch multiple instances of NPP each with a different session.