This is a plugin for Gedit, the official text editor of the GNOME desktop environment.
It restores the windows that were open the last time Gedit was closed (or forcibly stopped), preserving the open files in those windows and the ordering of their tabs. Tab groups are also restored.
This is intended to be a basic session saver without all possible bells and whistles. This should reduce the risk that the plugin breaks each time one of those bells or whistles is changed in a Gedit update. I'm sure there are fancier session savers, but this one does all I expect from it.
The plugin relies on timings to decide when to update changes in session state. This means e.g. if you close a document and then immediately quit Gedit, the document will still be reopened the next time you start Gedit.
Make sure to save all documents before quitting. If the “save changes” dialog shows up during quitting while multiple windows were open, then some of them may fail to restore.
This plugin is for Gedit versions 3.28 or above. It might work with lower 3.x versions but this has not been tested. This plugin is NOT compatible with Gedit 2.x.
-
Download the source code from this repository:
https://github.com/Drlex0/Gedit-session-keeper
You can either use
git clone
, or download the code as an archive. -
Copy these files to your Gedit plugins directory:
mkdir -p ~/.local/share/gedit/plugins cp -r sessionkeeper.* ~/.local/share/gedit/plugins/
-
(Re)start Gedit.
-
Activate the plugin: go to
Preferences
, selectPlugins
tab and checkSession Keeper
. -
Quit and reopen Gedit. This is necessary to initialise and activate the plugin.
Inspired by:
- Restore Tabs by Quixotix
- Ex-Mortis by Jeffery To
Copyright © 2019 Alexander Thomas (doctor.lex at gmail.com)
Released under GNU General Public License version 3