[PyKDE] Autocompletion with Eric (again)
Detlev Offenbach
detlev at die-offenbachs.de
Sat Apr 24 14:47:01 BST 2004
Hi again,
Am Freitag, 23. April 2004 12:59 schrieb j.vienne at libertysurf.fr:
> Hi, I have just a little suggestion about autocompletion
> with eric...
>
> Presently, if autocompletion is activated (with api files in
> my case), a listbox is launched for each reconized word.
> This can unpleasant if each word of the code appears as a
> key word; the listbox appears all the time...
> I think the best solution is to activate autocomplete
> function by a shortcut.
> This nearly works when the autocompletion is desactivated:
> the Ctl+Space shortcut displays a lisbox, but unfortunatly,
> the entries don't seem to be taken from the .api files.
>
> It would be great, when autocompletion is desactivated in
> the preferencies, to control it with 2 shortcuts : one
> completing with .api files, and the other with the current
> source keywords.
>
> I don't really know how hard it is to manage, but SciTE does
> it pretty well...
>
Having looked at the code in more detail and from your decsription I
assume, that autocompletion is done from the document all the time for
you. This may be due to a bad configuration. Please check in the
configuration dialog, that you have associated some .api files with the
language you are using (e.g. Python) and that the autocompletion source
is set to "from API files". In the later case, eric automatically
determines, if api files have been loaded for the language in use and
will use them. If not, autocompletion will be done from the document.
The Ctrl+Space action autocompletes from whatever source is activated for
the current document.
Is there a need to have different keyboard actions for autocomplete from
document and autocomplete from APIs?
Detlev
--
Detlev Offenbach
detlev at die-offenbachs.de
More information about the PyQt
mailing list