[squeak-dev] Re: Is there a preference setting to block automatic parentheses?

Marcel Taeumel marcel.taeumel at student.hpi.uni-potsdam.de
Tue Feb 24 18:44:15 UTC 2015


I like the way OCompletion does it. Almost. We need this behavior with one
addition: You should be able to manually set braces/brackets/paren...
(german: "Klammern" ^__^) around a term w/o automatic insertion of the
second one if there is so selection:

|aMorph color: Color blue

(|aMorph color: Color blue

(aMorph color: Color blue|

(aMorph color: Color blue)|

Right now, this is not possible with OCompletion's Smart Characters. But the
algorithm should be simple. I argue that you do not need to keep track of
automatically inserted braces but only consider the text cursor and its
surroundings (e.g. whitespaces or other braces). That's the way OCompletion
does it. Maybe do some automatic parsing of the text to check whether there
will be a closing bracket too much. ;-)

Best,
Marcel



--
View this message in context: http://forum.world.st/Re-Is-there-a-preference-setting-to-block-automatic-parentheses-tp4807131p4807373.html
Sent from the Squeak - Dev mailing list archive at Nabble.com.


More information about the Squeak-dev mailing list