I'm used to eclipse's and notepad++'s behavior of automatically opening the fi开发者_开发知识库les 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.
There is a Session Saver plugin available in gedit-plugins package. Look at http://live.gnome.org/GeditPlugins
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/
One more soulution https://github.com/disfated/gedit-plugin-reopen-tabs
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.
精彩评论