special editor support for indentation needed.

Steve Holden steve at holdenweb.com
Sun Nov 16 10:03:27 EST 2008


Eric S. Johansson wrote:
> Aaron Brady wrote:
[...]
> one step up from speaking the keyboard is forcing the user to say the same
> command multiple times to achieve a single effect.  For example, if you want to
> move to the beginning of the line for the end of the line, you can say "move
> word left" as many times as it takes to get to where you want to be or you can
> just say "move to start of line".  In the context of the indent outdent control,
> I don't really want moving to the right level of indentation for class, method,
> function etc..  I want a component to put in the method "new class" which would
> put a class definition at the right place with the right indentation in all the
> right components so that I don't have to speak the object hierarchy or triple
> quotes (in pairs).  It's all done for me.  But a macro like that won't work
> right unless I can put the cursor at the right level of indentation.
> 
You seem to be smart enough to realise that this can only take care of
the majority cases: one day you will want to define a class inside the
method of some other class, so you'll need special-casing for that rare
occurrence in whihc going back to the outermost level is "wrong".

regards
 Steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC              http://www.holdenweb.com/




More information about the Python-list mailing list