From pykde Sat Apr 24 12:45:25 2004 From: Detlev Offenbach Date: Sat, 24 Apr 2004 12:45:25 +0000 To: pykde Subject: Re: [PyKDE] Autocompletion with Eric (again) Message-Id: <200404241445.25026.detlev () die-offenbachs ! de> X-MARC-Message: https://marc.info/?l=pykde&m=108281087710034 Hi again, Am Freitag, 23. April 2004 12:59 schrieb j.vienne@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@die-offenbachs.de _______________________________________________ PyKDE mailing list PyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde