Is there an option to autosave the session leaving notepad++?
Moreover, if I change (in Windows) the command line to open the session doubleclicking the session file (for example adding "-multiinst" option) and after inside Notepad++ I select "Options" from menu, even if I make no changes the command line is restored to the default value (loosing my changes). Is there any option to avoid this?
Thanks in advance
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I mean:
a) I open a session file saved previously (e.g. Project.ntp where "ntp" is my session extension); this session includes 3 open files.
b) I open a 4° file;
c) exit from notepad. If I don't explicitely save session using the "File -> save session" dialog box, the session file "Project.ntp" will not be updated and the following time only the 3 files will be opened.
--> I find a useful thing if there is an option to autosave the opened session updating the selected session file. If I mark the "save session on exit", and then open another session file, I get all the files of the first session and those of the second session opened.
The second problem is that I use very frequently more than one instance of notepad at the same time, opening two or more session files. So I have associated (in Windows) to the file extension the following command line:
"notepad++.exe -multiInst -nosession %1"
where %1 is substituted with my session files (eg. project.ntp)
Doing the following action:
a) open a notepad instance.
b) Open the menu "Options" from toolbar.
c) Close the menu "Options" with or without making changes.
d) exit from notepad
e) --> the command line associated to session extension is restored to the default value:
"notepad++.exe" "%1"
loosing my previous changes
I hope the message is more clear.
Thanks for your effort.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
> c) exit from notepad. If I don't explicitely save session using the "File -> save
> session" dialog box, the session file "Project.ntp" will not be updated and the
> following time only the 3 files will be opened.
Yes, Notepad++ currently doesn't keep track of session changes due to closing and opening files. I think it is legitimate to ask for this feature. Since changes will be saved to the default session file on exit (when the option for that is checked), it is easy to expect similar behavior when opening an other session than the default one. Perhaps some handling could be added when Notepad++ is specifically started with one session file by the command line parameter (this could be made dependent of having the -multiinst paramater also).
> e) --> the command line associated to session extension is restored to the default
> value: "notepad++.exe" "%1"
This looks like unwanted behavior to me. There have also been similar reports about Notepad++ removing any additional information on icons/files. Notepad++ shouldn't set file associations and things like that time and time again, but only when a user specifically changes things.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is there an option to autosave the session leaving notepad++?
Moreover, if I change (in Windows) the command line to open the session doubleclicking the session file (for example adding "-multiinst" option) and after inside Notepad++ I select "Options" from menu, even if I make no changes the command line is restored to the default value (loosing my changes). Is there any option to avoid this?
Thanks in advance
Could you be more specific.
First of all, Notepad++ can save the default session on exit. Don't you know? Or what is wrong with that?
The rest of your message is arbadacarba to me.
I mean:
a) I open a session file saved previously (e.g. Project.ntp where "ntp" is my session extension); this session includes 3 open files.
b) I open a 4° file;
c) exit from notepad. If I don't explicitely save session using the "File -> save session" dialog box, the session file "Project.ntp" will not be updated and the following time only the 3 files will be opened.
--> I find a useful thing if there is an option to autosave the opened session updating the selected session file. If I mark the "save session on exit", and then open another session file, I get all the files of the first session and those of the second session opened.
The second problem is that I use very frequently more than one instance of notepad at the same time, opening two or more session files. So I have associated (in Windows) to the file extension the following command line:
"notepad++.exe -multiInst -nosession %1"
where %1 is substituted with my session files (eg. project.ntp)
Doing the following action:
a) open a notepad instance.
b) Open the menu "Options" from toolbar.
c) Close the menu "Options" with or without making changes.
d) exit from notepad
e) --> the command line associated to session extension is restored to the default value:
"notepad++.exe" "%1"
loosing my previous changes
I hope the message is more clear.
Thanks for your effort.
OK, this is more clear. Thanks for explaining.
> c) exit from notepad. If I don't explicitely save session using the "File -> save
> session" dialog box, the session file "Project.ntp" will not be updated and the
> following time only the 3 files will be opened.
Yes, Notepad++ currently doesn't keep track of session changes due to closing and opening files. I think it is legitimate to ask for this feature. Since changes will be saved to the default session file on exit (when the option for that is checked), it is easy to expect similar behavior when opening an other session than the default one. Perhaps some handling could be added when Notepad++ is specifically started with one session file by the command line parameter (this could be made dependent of having the -multiinst paramater also).
> e) --> the command line associated to session extension is restored to the default
> value: "notepad++.exe" "%1"
This looks like unwanted behavior to me. There have also been similar reports about Notepad++ removing any additional information on icons/files. Notepad++ shouldn't set file associations and things like that time and time again, but only when a user specifically changes things.
See also:
"Session autosave?"
http://sourceforge.net/forum/forum.php?thread_id=1946436&forum_id=331753
*lol* This was intended to be a post in another thread to refer to this one.