{"id":1146,"date":"2012-02-02T11:32:37","date_gmt":"2012-02-02T19:32:37","guid":{"rendered":"http:\/\/www.stevenbrown.ca\/blog\/?p=1146"},"modified":"2014-02-07T00:17:27","modified_gmt":"2014-02-07T08:17:27","slug":"gedit-3-2-gdp-completions-on-ubuntu-11-10-oneiric-ocelot","status":"publish","type":"post","link":"https:\/\/www.stevenbrown.ca\/blog\/archives\/1146","title":{"rendered":"Gedit 3.2 GDP Completions on Ubuntu 11.10 Oneiric Ocelot"},"content":{"rendered":"<p>Curiosity gets the best of me sometimes.  Okay, most of the time.  Did you know GNOME&#8217;s text editor, <code>gedit<\/code>, has a plethora of extensions which can basically transform it into an IDE?  Something I&#8217;ve always wanted is <a href=\"http:\/\/en.wikipedia.org\/wiki\/IntelliSense\">intellisense<\/a>-style autocompletion.  The closest thing I&#8217;ve found for <code>gedit<\/code> is <em>GDP Completions Plugin<\/em> in the <em>gedit-developer-plugins<\/em> package in Ubuntu.<\/p>\n<pre lang=\"bash\">\r\nsudo aptitude install gedit-developer-plugins\r\n<\/pre>\n<p>However, there&#8217;s a <a href=\"https:\/\/bugs.launchpad.net\/gdp\/+bug\/912967\">bug<\/a> in that package and the popup menu doesn&#8217;t actually work. <code>Ctrl + Space<\/code> is supposed to <a href=\"http:\/\/curtis.hovey.name\/gallery\/Sinzui\/gdp-2-28-0\/gdp-syntax-completion.png\">bring it up<\/a>.  So you want to add the <a href=\"https:\/\/launchpad.net\/~sinzui\/+archive\/ppa\">Gedit Developer Plugins PPA<\/a> and upgrade to the more recent version.<\/p>\n<pre lang=\"bash\">\r\nsudo add-apt-repository ppa:user\/ppa-name\r\nsudo apt-get update\r\nsudo apt-get upgrade gedit-developer-plugins\r\n<\/pre>\n<p>If you try to run gedit now, you&#8217;ll notice it won&#8217;t&#8230;  run, that is.  <em>Great<\/em>.  I know, right?  The problem is that the bzr plugin (also included in the <code>gedit-developer-plugins<\/code> package) is trying to use the <em>gtk2<\/em> version of bzr-gtk, but that doesn&#8217;t work in the <em>gtk3<\/em> gedit.  Anyway, you can pull a copy of the gtk3 bazaar plugin into your local bzr plugins directory. (I found this info <a href=\"https:\/\/bugs.launchpad.net\/ubuntu\/+source\/gedit-developer-plugins\/+bug\/872462\/comments\/4\">here<\/a>).  Create <code>~\/.bazaar\/plugins\/<\/code> if it doesn&#8217;t exist.<\/p>\n<pre lang=\"bash\">\r\nmkdir ~\/.bazaar\/plugins\r\ncd ~\/.bazaar\/plugins\r\nbzr branch lp:bzr-gtk\/gtk3 gtk\r\n<\/pre>\n<p>The <code>gedit-developer-plugins<\/code> package and <code>gedit<\/code> should work after that!  An alternative to the above would be to add a PPA that includes <code>bzr-gtk 3<\/code>.  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.  \ud83d\ude1b<\/p>\n<p>It&#8217;s not as polished or featured as <a href=\"http:\/\/pydev.org\/\" title=\"Eclipse and PyDev is probably better if that's what you're lookign for\">other implementations<\/a>, but it&#8217;s a good start.  Here&#8217;s a screenshot after I type <code>os.<\/code> then hit <code>Ctrl + Space<\/code>:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.stevenbrown.ca\/blog\/wordpress\/..\/files\/2012\/02\/gedit-gdp-completions.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1181\" data-permalink=\"https:\/\/www.stevenbrown.ca\/blog\/archives\/1146\/gedit-gdp-completions\" data-orig-file=\"https:\/\/i0.wp.com\/www.stevenbrown.ca\/blog\/wordpress\/..\/files\/2012\/02\/gedit-gdp-completions.jpg?fit=695%2C279&amp;ssl=1\" data-orig-size=\"695,279\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"gedit-gdp-completions\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.stevenbrown.ca\/blog\/wordpress\/..\/files\/2012\/02\/gedit-gdp-completions.jpg?fit=300%2C120&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.stevenbrown.ca\/blog\/wordpress\/..\/files\/2012\/02\/gedit-gdp-completions.jpg?fit=695%2C279&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.stevenbrown.ca\/blog\/wordpress\/..\/files\/2012\/02\/gedit-gdp-completions.jpg?resize=695%2C279&#038;ssl=1\" alt=\"\" title=\"gedit-gdp-completions\" width=\"695\" height=\"279\" class=\"alignnone size-full wp-image-1181\" srcset=\"https:\/\/i0.wp.com\/www.stevenbrown.ca\/blog\/wordpress\/..\/files\/2012\/02\/gedit-gdp-completions.jpg?w=695&amp;ssl=1 695w, https:\/\/i0.wp.com\/www.stevenbrown.ca\/blog\/wordpress\/..\/files\/2012\/02\/gedit-gdp-completions.jpg?resize=300%2C120&amp;ssl=1 300w\" sizes=\"auto, (max-width: 695px) 100vw, 695px\" \/><\/a><\/p>\n<h3>Further reading<\/h3>\n<ul>\n<li><a href=\"http:\/\/live.gnome.org\/Gedit\/Plugins\">Official Gedit Plugins Page<\/a> &#8211; Lists shipped plugins and links to many 3rd party plugins<\/li>\n<li><a href=\"http:\/\/www.micahcarrick.com\/gedit-as-a-django-ide-for-linux.html\">Gedit as a Django IDE for Linux<\/a> &#8211; Micah Carrick describes how he makes gedit useful for him<\/li>\n<\/ul>\n<h4>External tools plugin<\/h4>\n<ul>\n<li><a href=\"https:\/\/live.gnome.org\/Gedit\/ExternalToolsPluginCommands\">External Tools Plugin Command Collection<\/a> &#8211; Collection of scripts to be used in External Tools plugin<\/li>\n<li><a href=\"https:\/\/live.gnome.org\/Gedit\/Plugins\/ExternalTools\">Using External Tools<\/a> &#8211; Writing your own mini-scripts for External Tools<\/li>\n<\/ul>\n<h4>Rolling your own gedit 3 plugin<\/h4>\n<ul>\n<li><a href=\"https:\/\/live.gnome.org\/Gedit\/PythonPluginHowTo\" title=\"Intro to writing gedit3 plugins\">Python Plugin How To for gedit 3<\/a> &#8211; Intro to writing gedit3 plugins<\/li>\n<li><a href=\"http:\/\/www.micahcarrick.com\/writing-plugins-for-gedit-3-in-python.html\">Writing Plugins for gedit 3 with Python<\/a> &#8211; Another intro to plugin writing, by Micah<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Curiosity gets the best of me sometimes. Okay, most of the time. Did you know GNOME&#8217;s text editor, gedit, has a plethora of extensions which can basically transform it into an IDE? Something I&#8217;ve always wanted is intellisense-style autocompletion. The closest thing I&#8217;ve found for gedit is GDP Completions Plugin in the gedit-developer-plugins package in&hellip; <a class=\"more-link\" href=\"https:\/\/www.stevenbrown.ca\/blog\/archives\/1146\">Continue reading <span class=\"screen-reader-text\">Gedit 3.2 GDP Completions on Ubuntu 11.10 Oneiric Ocelot<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3],"tags":[245,10,66,46],"class_list":["post-1146","post","type-post","status-publish","format-standard","hentry","category-geek","tag-gedit","tag-gnome","tag-programming","tag-python","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4jEMb-iu","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.stevenbrown.ca\/blog\/wp-json\/wp\/v2\/posts\/1146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.stevenbrown.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stevenbrown.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stevenbrown.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stevenbrown.ca\/blog\/wp-json\/wp\/v2\/comments?post=1146"}],"version-history":[{"count":10,"href":"https:\/\/www.stevenbrown.ca\/blog\/wp-json\/wp\/v2\/posts\/1146\/revisions"}],"predecessor-version":[{"id":1289,"href":"https:\/\/www.stevenbrown.ca\/blog\/wp-json\/wp\/v2\/posts\/1146\/revisions\/1289"}],"wp:attachment":[{"href":"https:\/\/www.stevenbrown.ca\/blog\/wp-json\/wp\/v2\/media?parent=1146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stevenbrown.ca\/blog\/wp-json\/wp\/v2\/categories?post=1146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stevenbrown.ca\/blog\/wp-json\/wp\/v2\/tags?post=1146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}