AutoReplace activation key

rowanmoor

Member²
I used to use the %%autoreplace feature in the KWF files, but this seems to have been replaced by the AutoReplace function in 7.1.

Now, in the old KWF system I could define which keys would cause the replace to happen by using the ActionKeys= setting. This would allow me to have multiple keys that cause the replace to happen like Space, enter, brackets etc. Is there a way to do this in the AutoReplace function in 7.1?

Also, is there a way to have auto replace not occur when in a comment?
 
Now, in the old KWF system I could define which keys would cause the replace to happen by using the ActionKeys= setting. This would allow me to have multiple keys that cause the replace to happen like Space, enter, brackets etc. Is there a way to do this in the AutoReplace function in 7.1?
No, these keys are fixed, and are: space, enter, tab, dot, left parenthesis. You can also configure an explicit AutoReplace key ("Editor: AutoReplace") in the preferences.
Also, is there a way to have auto replace not occur when in a comment?
No. I have added this to the list of enhancement requests though. I guess in comments and in strings the AutoReplace function should do nothing.
 
Back
Top