[Pydev-code] Code completion
Brought to you by:
fabioz
From: Fabio Z. <fa...@in...> - 2004-03-29 19:25:39
|
I am not familiar with scintilla, but I think it is something similar to what you said, but it doesn't pop any suggestions. Example: If I have 'to' and press, let's say Alt+Space (that's what I use) It puts 'toto' (without any pop up...) if I press it again, it goes to the next suggestion - toBlaBla until it gets to the point where it goes back to 'to'.=20 Sometimes it works better than real code completion, because it tends to = be faster, because it is simpler to implement and it doesn't have to pop = any suggestion (and when editing something, most of the time, you just want = to complete simple words from the same editor and don't want to know about comments or anything else, since you are working on it).=20 Netbeans has something similar with Ctrl+K. The lunar-eclipse plugin has this functionality; it looks in all the = open editors and uses any text that completes it. It also has some nice = features on Rectangular editing things (http://lunar-eclipse.sourceforge.net/ ) Have you already checked http://www.zclipse.org/CompleteClipse/ ? I = didn't see it in too much detail, but it seemed useful for code completion. Regards, Fabio -----Original Message----- From: pyd...@li... [mailto:pyd...@li...] On Behalf Of Dana Moore Sent: segunda-feira, 29 de mar=E7o de 2004 15:23 To: pyd...@li...; Aleks Totic Cc: Kevin Altis; ww...@bb... Subject: RE: [Pydev-code] Contribution: Launching from Run->Run... menu Aleks, I am sneaking some time to work on autocompletion at the moment. Might as well add me to the developers' list. My SFid =3D=3D dana_virtual Bill, Thanks for getting something working. It prods me into keeping up with = the rest of the group. Fabio,=20 Thanks for the very comprehensive discussion of autocomplete = requirements. Although I had thought about imports, I had not even thought about the situation of subclassing. Thanks for reminding us! Right at the moment, I am just trying to hook Aleks parsed methods tree = and using that to try to completion for the current document. If I can get = to that level of sophistication, then I will look at imports and = subclassing. Fabio,=20 You said: "Allied with simple text-completion, it would make for a really good=20 environment for editing python (I've been using the lunar-eclipse plug-in and it has already done python editing in=20 eclipse almost unbeatable - maybe we could try to get in contact with its authors and distribute it together with=20 pydev - if it's ok with you, I'll get in touch with its authors and integrate it in pydev...)" When you say 'text completion' are you thinking about the kind of text completion like scintilla does, where if you enter the word 'toto' in = the text, and some time later begin typing 'to', it offers a suggestion of 'toto'. You can then hit TAB or ENTER and it deposits the text for you? OR Do you mean autocompletion such as we are working one? ALSO, I would add to your list the kind of code generation that you get when = you enter 'if'-CTRL-SPaceBar in the Java Dev Toolkit. when you do that, the editor offers several kinds of if, if-else constructions. You choose one = and it deposits the code and positions the cursor in the right place. I know = how to do that and can finish it after we get further on with the = autocompletion work. ALSO,=20 Can you say more about the lunar-eclipse stuff. What can we use from it? Regards,=20 >-----Original Message----- >From: Aleks Totic [mailto:a...@to...] >Sent: Monday, March 29, 2004 12:57 PM >To: pyd...@li... >Cc: ww...@bb...; Dana Moore >Subject: Re: [Pydev-code] Contribution: Launching from Run->Run... menu > > >Sounds good. I've had that running when I started working on the=20 >debugger, but for the release I turned it off because I did not=20 >have a real framework yet. Then I wanted to turn it back on, and=20 >I forgot how. Thanks for doing this. > >I've been doing some more work on the debugger. I've checked in=20 >my latest round of changes. Right now, the "Run..." option works=20 >as it used to. The "Debug..." option launches the program under=20 >jpydbg and you can't do anything with it. I hope to have some=20 >better communication between jpydbg & pydev this week. > >I think that the context of the 2 panes can be unified, since I=20 >started off that way. I'll look at your classes after the checkin=20 >to see how it can be done. > >I'll add you to the developers. What's your slashdot id? > >Aleks > >Bill Wright wrote: >> Hi Pydev guys. >>=20 >> As I think Dana mentioned elsewhere, I've been working on running = python >> apps using the Run entry under the Eclipse Run menu. This=20 >supplements the >> current Run action and behaves more like a Java configuration. = CTRL-F11 >> runs the last config, etc. I've attached a picture of the config = type to >> give you an idea what I'm talking about. On the left, there is a new = run >> configuration called "Python" and I've made one run config called = "Hello >> config" The tabbed pane looks a lot like the one on the=20 >Python->Run context >> menu, but is different code because it doesn't have the location = context. >> There is probably some refactoring that could unify the panels,=20 >but I wanted >> to do this initial cut without modifying other code. >>=20 >> The code consists of two new java files and some additions to the = debug >> plugin's plugin.xml. What's the procedure for contributing? =20 >I'd also like >> to be added as a developer to pydev. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id638&op=3Dick _______________________________________________ Pydev-code mailing list Pyd...@li... https://lists.sourceforge.net/lists/listinfo/pydev-code |