After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 745979 - after closing an unsaved document reopen it at next start
after closing an unsaved document reopen it at next start
Status: RESOLVED OBSOLETE
Product: gedit-plugins
Classification: Other
Component: General
unspecified
Other Linux
: High enhancement
: ---
Assigned To: Gedit maintainers
Gedit maintainers
: 485471 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2015-03-10 18:37 UTC by Denis Donici
Modified: 2020-11-24 10:18 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Denis Donici 2015-03-10 18:37:50 UTC
This idea comes from Scratch from elementary OS.
This is the only feature I really miss in gedit.

Create temporary files for unsaved documents at closing.
Open the unsaved documents from the last time.


The reason for this is convenience. Instead of asking every time before closing to save the document or not. Just save it automatically. Next time when user starts gedit he will decide what to do with the file, keep it or close it himself.
gedit could save time, especially if your in a hurry and dont have time for saving the document yourself. And gedit doesn't question users decisions. If user decided to close gedit, let it happen instantly. Respect time and authority

Testing OS: Fedora 22 Workstation Alpha i686
Comment 1 Denis Donici 2015-03-10 19:02:53 UTC
Besides, it takes away the feeling of worry "Have I saved it or not?"
You know for a fact that all your work is saved and you can just focus on work.
Comment 2 Sébastien Wilmet 2015-03-14 11:24:41 UTC
Good idea. Currently closing gedit with several unsaved documents is far from perfect, see bug #741504.
Comment 3 Garrick 2015-03-19 18:43:19 UTC
I am looking for my first Gnome bug to contribute and saw this. Are either of you already working on it or can I try? Could you please you point me where to look in the codebase (under jhbuild?) and suggest a strategy?

I believe ConText and/or Notepad++ do this on windows as well.
Comment 4 Sébastien Wilmet 2015-04-14 10:40:39 UTC
*** Bug 485471 has been marked as a duplicate of this bug. ***
Comment 5 Sébastien Wilmet 2015-04-14 11:45:34 UTC
Moving to the Plugins section, as I think it's feasible with a plugin.

Before closing a GeditWindow, the plugin needs to save and close the Unsaved Documents, so that the dialog window for saving unsaved documents doesn't appear.

Also, the plugin could autosave the Unsaved Documents, so in case of a crash the contents can be restored.
Comment 6 Karanbir Chahal 2015-10-28 00:50:48 UTC
Hello,I would like to make this plugin,could you direct me some resources as to where I could learn how to build one .Thank you :D
Comment 7 Sébastien Wilmet 2015-10-30 12:00:28 UTC
For the documentation, see:
https://wiki.gnome.org/Apps/Gedit

As was discussed on IRC, there is already a plugin for this feature:
https://github.com/dsoprea/GeditSafetySave
Comment 8 Jan Niklas Hasse (Account disabled) 2016-02-24 23:00:28 UTC
Hi! Just stumbled upon this bug report and I really hope this stays optional. I want gedit to ask me to save everything when I close it.
Comment 9 Denis Donici 2016-10-01 17:01:57 UTC
A bit more description about this feature. Scratch saves its state and opens and closes quickly. One of my favorite newer features is that Scratch doesn’t bug you about saving new, un-named files anymore. It’ll save it in a temporary location and you can deal with it whenever you’re ready. It’s very convenient because I can close Scratch at any time no matter what I’m doing and not have to worry about what I haven’t saved. It’s all taken care of.
Comment 10 Sébastien Wilmet 2020-11-24 10:18:39 UTC
Mass-closing of all gedit-plugins bugzilla tickets.

Special "code" to find again all those gedit-plugins bugzilla tickets that were open before the mass-closing:

2bfe1b0590a78457e1f1a6a90fb975f5878cb60064ccfe1d7db76ca0da52f0f3

By searching the above sha256sum in bugzilla, the gedit contributors can find again the tickets. We may be interested to do so when we work on a specific area of the code, to at least know the known problems and possible enhancements.

We do this mass-closing because bugzilla.gnome.org is being replaced by gitlab.gnome.org.