It would be nice if Smart Auto Typing could be more
context aware. If the next character is already defined
then either just insert the opening key or perhaps
enclose the whole word.
I do a lot of borrowing and recaftoring of code and
this would make that easier.
Existing text, need to add another parameter for sub:
my $var = shift;
Current behavior on typing open paren before $var:
my ()$var = shift;
^cursor between ()
New default behavior when not followed by whitespace:
my ($var = shift;
^cursor between ( $
With sub-option Grab Word set for Auto Typing ():
my ($var) = shift;
^cursor after close paren
The sub option would be best set for each and not global.