just applied...

I did only some minor changes, but it seems to work ok

Karol Pietrzak (RIT Student) wrote:

Hey everyone!

I wrote a patch to add colon skipping and bracket skipping to Pydev. That last feature is what the Eclipse Java editor does automatically, but here are descriptions anyway:

1. Colon skipping.  If you have:

def __init__(self):

...and your cursor if right before the end colon, you can type in ':' and it will just put your cursor after the colon, NOT insert another colon. This works very well with the auto-insertion of '()' and '(self)' that Pydev does after function declarations.

2. Bracket skipping.  In the Java editor, if you have:

Math.random()

...with your cursor between the parentheses and you type in ')', you will not get two parentheses. The cursor will just move to the position after the right parenthesis. This patch adds this feature to the Python editor, and it works with brackets too.

Oh, and both (1) and (2) are configurable from the Preferences->Pydev window (with tooltips!).

Next up, I'm not sure what I want to do. I have a few ideas, but if there's something someone would like to work on with me, let me know.

Thanks!

P.S. I apologize for the size of the patch. I also added some javadocs to random classes. Most notably, I added the org.apache.commons.lang.WordUtils class because it has a wrap() function that made writing nicely-sized tooltips easy. I don't think it'll create a licensing issue, as it's under the Apache License. But if push comes to shove, I can remove that.





-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Pydev-code mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-code

Reply via email to