AutoReplace

mike

Member³
Here is a minor annoyance for me.

I have:
zfnd = ZFND_DEBUG.PUT_LINE('

If I type zfnd, I get:
zfnd_DEBUG.PUT_LINE('

I would like it all caps like:
ZFND_DEBUG.PUT_LINE('
 
This seems like a bug in combination with a "Lowercase" setting for the "Editor / Keyword case" preference. Can you set it to "Unchanged" and check if this helps?
 
I actually had it as Uppercase. Uppercase and Lowercase do not work. Unchanged does help like you said.
 
Not to make new post ;)

1. Autoreplace should not be executed when keyword used in comments. Example if I make autoreplace pattern if=IF () THEN, using if in comments produces autoreplace results which is not really wanted there.

2. Autoreplace should be executed only when cursor is at the end of expression. Example with the same "if": I wrote IF (1=1) THEN line at the very start of the line, so now I need to leftpad it, so it aligns nicely with code, I can't do that in usual way just by pressing space or tab key, because autoreplace takes place and I have to copy either tab or space symbol and paste it before if.

Plz fix this...

And suggestion: I really liked texType behavior with multiline replace posibilities, cursor positioning with | symbol was brilliant in texType. Is it possible to make smth like this too (at least cursor positioning in autoreplace)?
 
You can get texType behavior with templates if you are using version 7.1. Templates have multi-line and cursor positioning with [#]. Create a template. In your preferences, modify the AutoReplace file to call your template.

For example, I have a template folder called All My Stuff and a sub folder called AutoReplace. To call the zfnd.tpl template when I type "zfnd", I enter this in the AutoReplace file:

zfnd=All My Stuff\AutoReplace\zfnd.tpl

Since my original post, the zfnd.tpl is now
ZFND_DEBUG.PUT_LINE('[TEXT]');[#]

I looked and wasn't able to find it in the user's guide though.
 
Back
Top