reading blogroll

out of date goodies

In order to help the large amount of people looking for my old widgets everyday, I'm putting below a list of the most wanted. Note that the others are still accessible at http://zendold.lojcomm.com.br/.

Entry

I'm very glad to announce today that I'm releasing gEdit AutoComplete plugin version 0.10.0. Now the plugin has features that I was really missing and it just cost me a little of time between Xmas and new year, so it's my first gift for the programmers in 2010. HAPPY NEW YEAR!

Important Notes

This is probably my last iteration of the gEdit AutoComplete plugin using the current architecture, 'cause the gEdit core team (pbor, jessevdk, nacho and others) are working on a native GTKSourceCompletion engine that should be the basis for the next version of this or the gEdit official one. Meanwhile, I'm inviting anyone interested to make additional language libraries to make the plugin better while the stable official version isn't available.

Hello Mr. Nagao,
Your plugin indicates use of a library. Where can I find the documentation on editing or adding more words to it.
Thanks….Great Plug-in!

In the plugin folder (probably ~/.gnome2/gedit/plugins/autocomplete/), there's a lib directory where you can add more libraries.

RonC 1 Feb 11 at 11:40am

Thanks for your note saying, for MS Windows, AutoComplete 0.11.0 needs different installation directions than 0.10.0. But, what about for the GNU/Linux version?

I have not been having success getting AutoComplete to appear in the plugin menu, with Gedit running on Ubuntu Lucid.

Would you please take a look at version 0.10.0’s installation directions (as copied below) and tell me if these will also require revision, to work correctly with 0.11.0?

Also, can you confirm the plugin directory (below) is correct, for the new version? And, is there any ‘trick’ to setting the plugin’s directory and file privileges, so everything ‘starts to work’?

Quote:

Copy both autocomplete.gedit-plugin and autocomplete folder to ~/.gnome2/gedit/plugins

Open gedit and click Edit -> Preferences -> Plugins

Check the Autocomplete (gedit-json-completion) and hit Close

Check the Word Completion and hit Close

That’s it! Now you can start coding and watch the popup working. Hit Return or Tab to accept the completion.

The install steps are right for Ubuntu.

RonC 1 Feb 11 at 11:46am

Is it correct, that for AutoComplete v_0.11.0, to run correctly, it requires that Gedit’s own Word Completion plugin be installed and checked? I just get this impression from v_0.10.0’s installation instructions, but it’s not specifically mentioned elsewhere.

And, if yes, then is this still true for the new v_0.11.0?

Thanks!

gedit-autocomplete 0.10.0 doesn't requires word completion plugin to be enabled. In fact it SHOULD BE DISABLED.

gedit-autocomplete 0.11.0 DOES REQUIRES word completion to be enabled, since the plugin is now integrated with all the GTK environment.

RonC 3 Feb 11 at 7:18am

Sorry, more confusion, but I just noticed this:

Am I correct, that packages on this page (link below) don’t include the most recent version (0.11.0)?
https://github.com/nagaozen/gedit-plugin-autocomplete/archives/master

The highest version I see on this page titled ‘Downloads for nagaozen/gedit-plugin-autocomplete’ is 0.10.0 . The zip file’s name also specifies version 10, so I’m assuming the link’s title is correct.

Your eyes are probably fooling you. When I click download, I see a Download .zip button which delivers the 0.11.0 version.

Newbie question: are we supposed to download 10 and then upgrade it to 11? I don’t know how to otherwise explain the absence of 0.11.0 on this page, when its availability is announced elsewhere.

You dont need to.

Reason for question: you’ve mentioned the two versions have different operational requirements under GNU/Linux, as well as different installation procedures under MS Windows. Perhaps my problems in getting a Menu entry are because I’m mistakenly using the wrong version?

Where did I mention that? Both OS's runs the same plugin! Only the install method is a bit different.

RonC 3 Feb 11 at 8:13am

All is now OK, with 0.10.1 (but not with 0.11.0 !).

I created a directory named ‘plugins’ (originally, this directory wasn’t present, on my system) in the directory location specified in the instructions, and put everything except the readme into that.

:-) I now have AutoComplete-0.10.1 in my plugin Menu. As directed, I unchecked the original ‘Word Completion’ plugin — you said these two plugins are incompatible – when using v10 .

I was having no luck at all, getting v11 to appear on the plugin Menu.

Since I saw no package for v.0.11.0, I downloaded it and reassembled the file and directory structure by hand, using the links on the first page. Perhaps this caused the malfunction?

I will now begin using your plugin and post again with any questions.

OS: Ubuntu 10.04 (EasyPeasy v6.1 modification)

Sorry, I really have no clue about what you are messing around

RonC 7 Feb 11 at 6:36am

vin writes: Your plugin indicates use of a library. Where can I find the documentation on editing or adding more words to it.

nagao replies: In the plugin folder (probably ~/.gnome2/gedit/plugins/autocomplete/), there’s a lib directory where you can add more libraries.

I am editing a text file and also want to ‘edit or add more words’ to Autocomplete’s library (as in vin’s question) so I looked into its (above-mentioned) ‘lib’ directory. Here, I found two files, asp.json and global.json.

I opened both files in gedit, expecting to find the words Autocomplete had accumulated during my editing session, so I could edit or add to this list.

However, the first file is loaded with words I have never used, probably for some programming language. Searching for a word that Autocomplete used during a recent session produces “word not found.”

The second, contains only { "statics": "MIT LGPL", "dynamic": {} }

Question: Could you please answer the second sentence of vin’s question, in more detail … not only where the necessary file should be located, but also how to perform the editing, in view of what the files seem to contain?

First of all, I would like to metion that you are using an old version of the plugin, but it doesn't matter cause the lib files keep the same structure.

To create a lib file for a new language, you have to create a <lang>.json (lang is the id of the language in gtksourceview2, usually the language name in lowercase).
This file should be a json compatible file, with the following structure: { "statics": "<words separated by space>", "dynamic": { "identificators": [], "members": {}, "tokenSeparator": '' } }, where
identificators are regular expressions used to detect the member type, members holds the classes properties and methods, and tokenSeparator is the char(s) used as token separators in the language.

RonC 23 Feb 11 at 11:05am

Thanks for the help. :-)

I now have 0.11.0 installed and working. The word completion window is now larger than in old version, and ‘Document Words’ is written in the top border. In Plugins menu, both AutoComplete and Word Completion are checked, as you directed, for correct function with new version.

Question:
Is this as it should be? If ‘yes’, then where and how would the word-completion source-selection be indicated? A short example would be helpful.

If ‘no’ then please some details on what you think may have gone wrong. Again, the plugin appears to function normally, otherwise. Good Job!!
__________________
For other users, coming across your plug-in for the first time, perhaps it will help them if the version number appears when clicking the ‘About Plugin’ button?