AutoComplete
AutoComplete copied to clipboard
Change for more flexible templates
Currently, "autocomplete" allows templates to be used for autocompletes. The problem is that only one cursor tabstop can be used ( to signify the cursor resting place after completion), and any values specified as varnames are linked in the editor such that specifying a value for one "varname" will alter the values for all other varnames that share the same varname. Sometimes we want to be able to alter values independently but we want the same initial value.
This update adds the following syntaxes
Example 1:
${:replacement}${:replacement}${:replacement}
In the above example, there will be three tabstops showing "replacment" (without the colon). If the colon was not specified then typing in the highlighted area would alter all three "replacement" fields, with the colon, now there are three replacements to modify across the three tabstops. Typing in one will not affect the others.
Alteration 2:
Allow the '}' character in varnames.
Example:
${:}}
This will create a tabstop showing an initial value of "}" (without quotes). The value of this change is that sometimes the tabestop may require values that include braced brackets but currently, rbrace is not supported as a template value. With the escaped rbrace, it allows a full range of template values.
NOTE :: This change brings "Autocomplete" on-par with Ace editors autocomplete templating facilities.