Skip to content

A gedit plugin to reopen closed windows and optionally restore windows between sessions

License

Notifications You must be signed in to change notification settings

jefferyto/gedit-ex-mortis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ex-Mortis, a plugin for gedit

Reopen closed windows and optionally restore windows between sessions
https://github.com/jefferyto/gedit-ex-mortis
0.2.4-dev

All bug reports, feature requests, and miscellaneous comments are welcome at the project issue tracker.

Be sure to watch the project on GitHub to receive notifications for new releases.

Requirements

This plugin requires gedit 3.12 or later.

Installation

  1. Download the latest release and extract.
  2. Copy the ex-mortis folder and the ex-mortis.plugin file into ~/.local/share/gedit/plugins (create if it does not exist).
  3. Restart gedit, then activate the plugin in the Plugins tab in gedit’s Preferences window.
  4. Restart gedit again, preferably using Quit in the Application menu or the File menu. This is necessary because the plugin cannot reopen any windows that were open when the plugin was activated.

If you have previously activated the Dashboard or Zeitgeist plugins (part of the gedit-plugins package), you may want to deactivate them as they may conflict with this plugin.

Usage

  • This plugin adds a new Reopen Closed Window menu item, following New Window in either the Application menu or the File menu.

    Activating this menu item will reopen the most recently closed window in the current session; if there are no closed windows, the menu item will be disabled.

    This menu item can also be activated from the keyboard with Ctrl+Shift+N (Command+Shift+N on macOS).

  • If enabled in preferences, this plugin will also restore windows between gedit sessions.

    Window information is tracked in real-time, i.e. when files are opened and closed, so that if gedit crashes or is closed unexpectedly, when gedit is restarted all windows will be restored to the previous state.

Note that only saved files will be reopened. Unsaved files or unsaved changes are not cached in any way. Closed windows with no saved files, i.e. only unsaved or blank documents, will not be reopenable.

Preferences

  • Restore windows between sessions - If enabled, windows that were open in the previous session will be reopened when gedit is started again. (Default: Disabled)

Contributing

The code in ex-mortis/utils comes from python-gtk-utils; changes should ideally be contributed to that project, then pulled back into this one with git subtree pull.

Credits

Inspired by:

License

Copyright © 2017-2019, 2023-2024 Jeffery To [email protected]

Available under GNU General Public License version 3

Other plugins you may like

  • Control Your Tabs
    Switch between document tabs using Ctrl+Tab and other common keyboard shortcuts

  • Python Console
    Interactive Python console standing in the bottom panel

  • Tab Group Salute
    Switch between tab groups using Ctrl+<key above Tab>

About

A gedit plugin to reopen closed windows and optionally restore windows between sessions

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages