[wingide-users] Templates in 3.1
Wingware Support
support at wingware.com
Fri Mar 7 08:41:14 MST 2008
Luc Bourhis wrote:
> the new template mechanism is a nice feature. However I am not too fond
> of the fact that the template mode must be explicitly escaped. Let's
> take an example:
>
> def foo(self, args):
> code
>
> Typical use would be: start typing def; hit tab, therefore
> autocompleting the template; type foo; hit tab; type args; hit tab; type
> the code. At that point, I find it very unlikely I would want to use tab
> to go back to foo or to use the arrow keys to change the indentation of
> the whole block: I just want to type my code as usual and I would
> therefore wish that the template mode would switch itself off without my
> having to hit the escape key.
I agree this would be good. The final cursor resting position is denoted
by |!| in the template and I think it would be reasonable to turn off
the data entry mode when that is reached. Templates that don't want that
would just use fields and no |!|, tho I'm not sure that would be needed
very often. I'll change this before the next beta if not sooner by patch.
Thanks for the suggestion!
--
Stephan Deibel
Wingware | Python IDE
Advancing Software Development
www.wingware.com
More information about the wingide-users
mailing list