Curiosity gets the best of me sometimes. Okay, most of the time. Did you know GNOME’s text editor,
gedit, has a plethora of extensions which can basically transform it into an IDE? Something I’ve always wanted is intellisense-style autocompletion. The closest thing I’ve found for
gedit is GDP Completions Plugin in the gedit-developer-plugins package in Ubuntu.
sudo aptitude install gedit-developer-plugins
However, there’s a bug in that package and the popup menu doesn’t actually work.
Ctrl + Space is supposed to bring it up. So you want to add the Gedit Developer Plugins PPA and upgrade to the more recent version.
sudo add-apt-repository ppa:user/ppa-name sudo apt-get update sudo apt-get upgrade gedit-developer-plugins
If you try to run gedit now, you’ll notice it won’t… run, that is. Great. I know, right? The problem is that the bzr plugin (also included in the
gedit-developer-plugins package) is trying to use the gtk2 version of bzr-gtk, but that doesn’t work in the gtk3 gedit. Anyway, you can pull a copy of the gtk3 bazaar plugin into your local bzr plugins directory. (I found this info here). Create
~/.bazaar/plugins/ if it doesn’t exist.
mkdir ~/.bazaar/plugins cd ~/.bazaar/plugins bzr branch lp:bzr-gtk/gtk3 gtk
gedit-developer-plugins package and
gedit should work after that! An alternative to the above would be to add a PPA that includes
bzr-gtk 3. Not sure if one exists at the moment, but that would be a cleaner solution. And you thought it would be simple. I know I did.
It’s not as polished or featured as other implementations, but it’s a good start. Here’s a screenshot after I type
os. then hit
Ctrl + Space:
- Official Gedit Plugins Page – Lists shipped plugins and links to many 3rd party plugins
- Gedit as a Django IDE for Linux – Micah Carrick describes how he makes gedit useful for him
External tools plugin
- External Tools Plugin Command Collection – Collection of scripts to be used in External Tools plugin
- Using External Tools – Writing your own mini-scripts for External Tools