Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferyto committed Oct 13, 2017
2 parents fca2f6a + 521832e commit 988e2de
Show file tree
Hide file tree
Showing 21 changed files with 3,966 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__pycache__/
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Changelog

## 0.1.0 (2017-10-13)
* Initial release
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

74 changes: 74 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# Ex-Mortis, a plugin for gedit

Reopen closed windows and optionally restore windows between sessions
<https://github.com/jefferyto/gedit-ex-mortis>
0.1.0

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

## Requirements

This plugin requires gedit 3.12 or newer.

## Installation

1. Download the source code (as [zip][] or [tar.gz][]) 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 enable 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.

## 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
<kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>N</kbd>
(<kbd>Command</kbd>+<kbd>Shift</kbd>+<kbd>N</kbd> on macOS).

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

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)

## Development

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:

* [Restore Tabs][] by Quixotix

## License

Copyright &copy; 2017 Jeffery To <[email protected]>

Available under GNU General Public License version 3


[project issue tracker]: https://github.com/jefferyto/gedit-ex-mortis/issues
[zip]: https://github.com/jefferyto/gedit-ex-mortis/archive/master.zip
[tar.gz]: https://github.com/jefferyto/gedit-ex-mortis/archive/master.tar.gz
[python-gtk-utils]: https://github.com/jefferyto/python-gtk-utils
[Restore Tabs]: https://github.com/Quixotix/gedit-restore-tabs
11 changes: 11 additions & 0 deletions ex-mortis.plugin
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Plugin]
Loader=python3
Module=ex-mortis
IAge=3
Name=Ex-Mortis
Description=Reopen closed windows and optionally restore windows between sessions
Icon=window-new
Authors=Jeffery To <[email protected]>
Copyright=Copyright © 2017 Jeffery To
Website=https://github.com/jefferyto/gedit-ex-mortis
Version=0.1.0
Loading

0 comments on commit 988e2de

Please sign in to comment.