Porting of the Gedit SessionSaver plugin to Xed
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
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.
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
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.
Based on this Gedit Plugin
https://gitlab.gnome.org/GNOME/gedit-plugins/-/tree/master/plugins/sessionsaver
- xed-terminal-plugin https://github.com/tudo75/xed-terminal-plugin
- xed-codecomment-plugin https://github.com/tudo75/xed-codecomment-plugin
- xed-sessionsaver-plugin https://github.com/tudo75/xed-sessionsaver-plugin
- xed-restore-tabs-plugin https://github.com/tudo75/xed-restore-tabs-plugin
- xed-plantuml-plugin https://github.com/tudo75/xed-plantuml-plugin