Open PwtKCL opened 13 hours ago
Discussed in last week's group meeting, we decided to make a special new behaviour with the closing brackets (which at the moment do nothing at all in Strype).
Say we have this situation: n[3] and I want to make a new expression n[0][3]
And in any case, the existing behaviour when hitting "[" stay the same as before.
When composing code, it can be required to "insert" a new pair of brackets when dealing with multi-dimensional elements.
For example, I have this code:
and later I want to use "var" as a 2-dimension list, and would like to have this result ... :
... ending up there by typing '[' then "prev" to insert that new indexer is tricky with Strype, because typing '[' before the existing bracket (the one of "x") will overtype the existing one, and therefore we can't insert the new indexer by directly typing it. (We can of course try to work around that behaviour by doing copy/paste actions for example.)