Re: [Pydev-code] patch for colon skipping and bracket matching
Brought to you by:
fabioz
From: Fabio Z. <fa...@in...> - 2005-07-15 11:57:26
|
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. > |