gEdit 3
The version of gEdit in Oneiric & above is v3 built using gtk+3 libraries. The plugin folder locations are slightly different than from gEdit v2.
Every plugin needs at least two files.
One file (pluginname.plugin) is to tell gedit
:
- where the plugin can be found,
- what it's called,
- a short description,
- who is the author, etc.
This file is in the .desktop
format.
The second file is the actual code.
Both of these files need to be placed in either:
- the system-wide plugins directory
/usr/lib/gedit/plugins/
, or
- in the user plugins directory, which may have to be manually created -
~/.local/share/gedit/plugins/
.
Installing Plugins
First create the plugin folder:
mkdir -p ~/.local/share/gedit/plugins
Now create a .plugin
file using gedit N.B. these files have the format:
[Plugin]
Loader=python
Module=examplepy
IAge=3
Name=Example py
Description=A Python plugin example
Authors=Jesse van den Kieboom <jesse@icecrew.nl>
Copyright=Copyright © 2006 Jesse van den Kieboom <jesse@icecrew.nl>
Website=http://www.gedit.org
source
For your v2 plugin you already have a file called project-manager.gedit-plugin
so you can rename it:
mv project-manager.gedit-plugin project-manager.plugin
Then edit the plugin file and change the section header to "[Plugin]"
You will now see this in your gedit plugin list.
However for me it threw errors about "import gedit, gtk, gtk.glade".
You need to change the source code to import the gtk+3 variants - called python introspection.
An excellent tutorial for converting from gtk+2 to gtk+3 see
Under Edit → Preferences → Plugins, you can tick the Text Size box and zoom in with ctrl++.
ctrl+Trackpad scroll (up/down) enables you, to zoom in and out as well, not only within gEdit, but also in your Webbrowser, File System etc.
Both possibilities work just fine in Ubuntu 11.10.
Update information for Ubuntu 17.x.x, 18.x.x and later, as suggested by code_dredd - tested and works:
sudo apt-get install -y gedit-plugin-text-size
Best Answer
If gedit has missing plugins, make sure you have the
gedit-plugins
installed.After that, (you probably need to restart gedit) you will have a plugin called "Text Size".
Make sure the plugin is enabled, and you will be able to "zoom" (i.e. change font size) using Ctrl + Mouse Wheel.
This is the list of plugins available in the
gedit-plugins
package