gedit automatic session saving or default session?
Asked Answered
C

5

6

I'm used to eclipse's and notepad++'s behavior of automatically opening the files and tabs present on last exit. Does anyone know if there is a way to enable this in Gedit? The session management plugin that I'm using seems to require explicit menu selection of load and save in order to retrieve a session. Anyone know if there's a way to automatically restore the last session or to choose a default session?

Thanks.

Catechism answered 15/11, 2010 at 17:20 Comment(0)
A
3

There is a Session Saver plugin available in gedit-plugins package. Look at http://live.gnome.org/GeditPlugins

Aholla answered 2/12, 2010 at 16:32 Comment(2)
You can find useful those two as well: 1. code.google.com/p/reopen-tabs-gedit-plugin 2. sourceforge.net/projects/geditautosavesAholla
Looks like the page has moved to here: wiki.gnome.org/Apps/Gedit/PluginsOld (?)Spalding
A
3

For gedit 3.10 (included in Ubuntu 14.04) use this plugin: https://github.com/raelgc/gedit-restore-tabs. In case ~/.local/share/gedit/plugins/ does not exist. Please create using mkdir -p ~/.local/share/gedit/plugins/

Azelea answered 4/4, 2014 at 12:51 Comment(1)
Unfortunately it does not work under F22 with GEdit 3.16.4 anymore. Only opened a tab where it said it couldn't handle such location and a new tab, instead of the one tab I had open in the last session.Frizette
S
1

One more soulution https://github.com/disfated/gedit-plugin-reopen-tabs

Swampland answered 22/5, 2011 at 13:39 Comment(0)
K
1

I've been very happy with https://github.com/jefferyto/gedit-ex-mortis, which can automatically restore windows, including all tabs, between sessions (you just have to enable the option in Preferences). It requires gedit 3.12 or newer, and works great for me on version 3.36.

Kennykeno answered 5/1, 2021 at 11:8 Comment(0)
T
0

You can use a third-party gedit plugin: https://wiki.gnome.org/Apps/Gedit/ThirdPartyPlugins

Depending on your gedit version, I know about these plugins that can help you: Ex-Mortis, Restore Tabs and Session Saver.

For gedit 41.0 on Ubuntu 22.04 I use Ex-Mortis

  1. Download the latest release and extract: https://github.com/jefferyto/gedit-ex-mortis/releases/latest

  2. Copy plugin files:

mkdir -p ~/.local/share/gedit/plugins
cp -r ex-mortis ~/.local/share/gedit/plugins
cp ex-mortis.plugin ~/.local/share/gedit/plugins
  1. Restart gedit, then activate the plugin in the Plugins tab in gedit's Preferences window.

  2. Activate "Restore windows between sessions" from Ex-Mortis plugin's Preferences.

  3. Restart gedit again.

Tahmosh answered 5/7, 2023 at 12:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.