After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 311835 - Feature request: Word auto-complet
Feature request: Word auto-complet
Status: RESOLVED DUPLICATE of bug 439174
Product: gedit-plugins
Classification: Other
Component: General
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Gedit maintainers
gedit QA volunteers
Depends on:
Blocks:
 
 
Reported: 2005-07-28 09:20 UTC by Alex Collins
Modified: 2019-03-23 20:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Plugin description (267 bytes, text/plain)
2006-01-26 18:03 UTC, Guillaume Chazarain
Details
Python implementation (5.29 KB, text/plain)
2006-01-26 18:05 UTC, Guillaume Chazarain
Details

Description Alex Collins 2005-07-28 09:20:29 UTC
Kate has a greate feature in it, that if gedit had then I'd switch straight
away. It was a word autocomplete. Nothing as complex as you might find in a IBM
IDE, be really handy for writing complex scripts and avoiding errors. Basically,
it keeps a list of the words in the document you are currently editing, then
were you start typing a new word, it offers a list of completions that you can
then select one from. It's an amazingly simple idea, but also amazingly useful.
Comment 1 Mateus César Gröess 2005-11-04 01:02:15 UTC
Yeah, it's an amazingly feature. I am using it with Anjuta 1.2.4, but I don't
need all those IDE tools, so I disabled most of them. I hope someone will add
this feature to Gedit, so if support to CR+LF/CR/LF conversions is also added
(bug 103753, which I think should be a blocker bug for 2.14), I can finally switch.

Paolo Borelli told about a auto-complete plugin that someone wrote for older
versions (http://mail.gnome.org/archives/gedit-list/2005-June/msg00007.html):


"There was a guy working on a automplete plugin some time ago...

http://usuarios.lycos.es/acisif/gedit/autocomplete/autocomplete.html

unfortunately the plugin was not stable enough and had some problems so
it couldn't be included in gedit itself and we haven't heard back from
the guy. If someone wants to resume (or rewrite) such a plugin he can
check the archives for some suggestion etc. We still think it would be a
useful addition, but we son't have time to work on that ourselves."

Comment 2 Mateus César Gröess 2006-01-20 23:20:32 UTC
I saw the screen record of the new interactive search UI (http://www.gnome.org/~pborelli/screenshots/gedit-search.gif). Everything needed by text auto-complete feature is there: text lookup as you type and list of matches to select. It is basically the new interactive search, without the dialog, without text highlighting and without moving text view or the cursor position to another line or column. Maybe the implementation of auto-complete feature in the core is easier than write a plugin with a lot of code duplicated...
Comment 3 Guillaume Chazarain 2006-01-26 18:03:26 UTC
Created attachment 58174 [details]
Plugin description
Comment 4 Guillaume Chazarain 2006-01-26 18:05:04 UTC
Created attachment 58175 [details]
Python implementation

Here is a quick and dirty implementation of a completion plugin in python.
It does not use gedit's search feature, but it uses a GtkEntryCompletion.
Comment 5 Paolo Borelli 2006-01-30 23:23:01 UTC
neat! I'll give it a try soon. Feel free to add it to live.gnome.org/Gedit
Comment 6 Jaime Frutos Morales 2006-03-04 14:39:06 UTC
I've tried the plugin and it works different from the Anjuta style. Using the plugin, you hace to press alt+/ to show the completion while in Anjuta the autocompletion shows automatically. 

I would like to see it working like in Anjuta.
Comment 7 Ignacio Casal Quinteiro (nacho) 2009-10-24 00:39:37 UTC

*** This bug has been marked as a duplicate of bug 439174 ***