RE: [Pydev-code] Autocompletion - couple adds
Brought to you by:
fabioz
From: Dana M. <dan...@ya...> - 2004-08-11 19:19:25
|
--- Fabio Zadrozny <fa...@in...> wrote: > Dana, > > The code completion for ' and " and ( is not really a code > completion as > we are doing, I think it is implemented easier as a new keybinding, > so that > putting ' already closes it (and puts the mouse in the correct > position), as > for " and (. > Yes, I understand already. I did not mean to lump everything together under the concept of "code completion". I rather misstated that. I will implement the appropriate thing for apostrophe and double apostrophe. The case for open-parenthesis when related to a method _is_ code completion however. In the line shown below, we should offer the user assistance twice, once for the dot and once for the open-parenthesis: Class foo: def bar(self, value): True f = foo() # ~~~~~~~~~~ here we should offer two code suggestions: ~~~ #V V f.bar( Anyway, I understand you aprroach for apostrophe and double apostrophe. and I will add those. I am going to start to look at coding a specific Python 'nature' and an associated project wizard. One of the guys who codes Python for me is complaining about the lack of those things and the fact that he has to go to edit-actions for Run and Debug, so I guess we ought to create a nature. > I also think it is much faster this way... It is basically what I did > for > backspace, so that it grabs backspace and deletes a custom number of > characters, you would grab the ' keystroke and make it add '' > > If it is well implemented, doing it for 1 is the same as doing it for > all... > The worse part is putting that keybindings in the plugin.xml... Or > maybe you > don't even have to put it in the plugin.xml, just put them in > PyEdit.createActions... (editing xml sucks)... > > []s > > Fabio Zadrozny > ------------------------------------------------------ > Software Developer > ESSS - Engineering Simulation and Scientific Software > www.esss.com.br > > > -----Original Message----- > From: pyd...@li... > [mailto:pyd...@li...] On Behalf Of Dana > Moore > Sent: quarta-feira, 11 de agosto de 2004 15:04 > To: pyd...@li... > Subject: [Pydev-code] Autocompletion - couple adds > > Fabio, > Very nice refactoring! > I just checked in a fresher version of: > o org.python.pydev\src\org\python\pydev\editorPyEditConfiguration > (new > revision: 1.17) > This simply shortens the autoactivation delay interval for zippier > performance > > o org\python\pydev\editor\codecompletion\{PyCodeCompletion, > PythonCompletionProcessor}.java > to reapply autoactivation on "(" > o org.python.pydev/plugin.xml > new revision: 1.32; > this adds a couple new (possibly useful) templates > > Something that just occurs to me is that we ought to also do some > other > useful 'completions' as well - for example, in the JDE, when you type > in the > single apostrophe character ('), a mathing one is emitted right > behind it; > when you type in the double apostrophe character (") , a mathing one > is > emitted right behind it; I will look to addingthat tonight. > Best, > > ===== > _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ > _/ Dana Moore _/ > _/ BBN Technologies LLC _/ > _/ M: 240.350.4196 _/ > _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - 50x more storage than other providers! > http://promotions.yahoo.com/new_mail > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank > Media 100pk > Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% > off > Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank > Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Pydev-code mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > ===== _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ Dana Moore _/ BBN Technologies LLC _/ M: 240.350.4196 _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail |