Skip to content

tudo75/xed-sessionsaver-plugin

Repository files navigation

xed-sessionsaver-plugin

Porting of the Gedit SessionSaver plugin to Xed

Requirements

To interface with xed some libraries are needed:

  • meson
  • ninja-build
  • valac
  • libpeas-1.0-dev
  • libpeas-gtk-1.0
  • libglib2.0-dev
  • libgtk-3-dev
  • libgtksourceview-4-dev
  • libxapp-dev
  • xed-dev

To install on Ubuntu based distros:

sudo apt install meson ninja-build build-essential valac cmake libgtk-3-dev libpeas-dev xed-dev libxapp-dev libgtksourceview-4-dev libgee-0.8-dev libjson-glib-dev

Install

Run ./run.sh to install with meson build system.

Or if you want to do it manually:

meson setup build --prefix=/usr
ninja -v -C build com.github.tudo75.xed-sessionsaver-plugin-gmo
ninja -v -C build
ninja -v -C build install

Run xed and go to Preferences->Plugin and enable the SessionSaver. You can verify the plugin preferences pane and information with the bottom buttons.

Uninstall

Run ./uninstall.sh if you installed through meson system or if you would it manually:

sudo ninja -v -C build uninstall
sudo rm /usr/share/locale/en/LC_MESSAGES/com.github.tudo75.xed-sessionsaver-plugin.mo
sudo rm /usr/share/locale/it/LC_MESSAGES/com.github.tudo75.xed-sessionsaver-plugin.mo

Instructions

Save Session

To save current session go to "Tools" -> "Save Session" and in opened window give it a name, or choose from a previous saved one.

Load Session

To load a saved session go to "Tools" -> "Mange sessions" and choose the session you want to restore. Here you can also delete a saved session or export your saved sessions to import in another pc or to backup them.

Credits

Based on this Gedit Plugin

https://gitlab.gnome.org/GNOME/gedit-plugins/-/tree/master/plugins/sessionsaver

My Xed Plugins

About

Porting of the Gedit SessionSaver plugin to Xed

Resources

License

Stars

Watchers

Forks

Packages

No packages published