Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

This plugin provides a popup based completion plugin for gEdit.

branch: master
Octocat-spinner-32 README.md making deprecated February 28, 2011
README.md

gEdit Autocomplete

gEdit Autocomplete suggests word completions based on the text in the active document and in an additional language library file.

Deprecated

THIS PLUGIN HAS BEEN DEPRECATED IN FAVOR OF GEDIT-PLUGIN-CODECOMPLETION.

Demo

A demo of this plugin working - with snippets and classbrowser, of course - is available at YouTube! You can check it working before downloading.

Installation

  1. Copy both autocomplete.gedit-plugin and autocomplete folder to ~/.gnome2/gedit/plugins
  2. Open gedit and click Edit -> Preferences -> Plugins
  3. Check the Autocomplete (gedit-json-completion) and hit Close
  4. Check the Word Completion and hit Close
  5. That's it! Now you can start coding and watch the popup working. Hit Return or Tab to accept the completion.

NOTE: Windows users should follow the instructions of http://zend.lojcomm.com.br/entries/setting-autocomplete-to-work-in-windows-gedit/

Adding new library files

To add new language libraries to gedit-json-completion, just drop a <language_id>.json in the lib folder. To retrieve a python list of the available languages, use:

import gtksourceview2 as _
lm = _.LanguageManager()
ids = lm.get_language_ids()

License

Copyright (C) 2011 Fabio Zendhi Nagao

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Credits

There are a lot of completions plugins in the Gnome gEdit Plugins page, and I don't know what one was the first but this one is a product by:

Changes

@2011-02-28
Deprecated

@2011-01-20
Releasing 0.11.0
Adding 0.10.0 tag

@2010-06-06
Updated some lines in settings.py to make it compatible with the windows version.

@2010-01-02
Plugin completely rewritten. Renamed the version to 0.10.0. Notable features:

  • Accepts a global list of static words available for all kind of documents
  • Accepts a list of static words for each language -- useful for constants, static methods etc
  • Accepts a library to handle dynamic instances -- intellisense like
  • Tips are now sorted
  • Configurations based on json.
  • Removed all install and non-standard icons things. Installation is easy as copy and paste inside ~/.gnome2/gedit/plugins/

@2009-10-17
Merged the configurable branch. Renamed the version to 0.9.8

  • The completion behavior can be one of the following :
    • global : each window shares their words, so any word in any window is eligible for completion anywhere
    • local : each window only knows its own words, so only those are eligible for completion in the window.
  • A global list of predefined words is available in any window.
  • A configuration dialog is available to tweak the above settings.

@2009-10-03
Added an plugin icon.Renamed the version to 0.9.7

@2009-10-04
bugfix: Completion was active only on the last opened window. Previous opened windows lost the completion feature.

@2009-05-15
I did a brief read in the plugin, changed tabs into four spaces, fixed some typos and made the required changes to make Return run as the trigger instead of Tab.

Something went wrong with that request. Please try again.