This is nice for when the application / the system is crashing, or there is a power outage.
I think the Addons plugin from Geany Plugins can do just that :)
If I understand @CreamyCookie correctly, he is not looking for auto save function but rather wants a "hot exit" feature (and I would like that too).
Hot exit is a feature of some modern editors that preserves unsaved files on quit without prompting the user to save them before quitting. A nicer explanation can be seen here: https://github.com/Microsoft/vscode/issues/101#issue-117679274
I searched in every plugin I could get, but I couldn't find such feature.
The use-case seems to have two parts:
Saving the session status when the application is shutdown normally. Saving modified buffers in the Geany config directory and recording that in the session file should be possible if someone wants to make a pull request for it.
Preserving state when the application is not shutdown normally, ie crash, logout, system shutdown. In this case there is no way of saving the status after the abnormal condition has occurred, so any saving needs to happen before the abnormal incident similar to the Saveactions plugin (not Addons as @b4n posted), but not saving over the original file. That would be a reasonable enhancement to that plugin and again pull requests are welcome.
I need this. Everytime I close VSCode manually, it is prompting me to save untitled files. If I don't save it, then its not restored. I don't want to save those untitled files, I just use those as scratch notes. If I ctrl+alt+del to force exit then it works, but i prefer not to ctrl+alt+del it.
I have came here to ask for the same feature. Preserving unsaved files on exit and restore them on launch would enhance my productivity a lot.
Just needs "somebody" to do it.
Ok, @codebrainz and I have had an offline discussion and since it doesn't matter which issue discussion actually continues on this will continue here, but the discussion on #2717 which does (at least to me, @etkaar may disagree) seem to be heading to an implementation, is to be considered to be pasted here (sadly Github doesn't actually allow them to be combined AFAIK).
Most helpful comment
The use-case seems to have two parts:
Saving the session status when the application is shutdown normally. Saving modified buffers in the Geany config directory and recording that in the session file should be possible if someone wants to make a pull request for it.
Preserving state when the application is not shutdown normally, ie crash, logout, system shutdown. In this case there is no way of saving the status after the abnormal condition has occurred, so any saving needs to happen before the abnormal incident similar to the Saveactions plugin (not Addons as @b4n posted), but not saving over the original file. That would be a reasonable enhancement to that plugin and again pull requests are welcome.