It would be nice if the user could specify the characters which delimited chunks used for expansion. For example, I often need to type things like foo{bar and I would like bar to expand, so I would like to tell SpellCatcher "treat { as though it were a space"
Along the same lines, suppose bling expands to \hey{ and does not include the trailing space when expanded. It would be nice to be able to type bling<space>bling<space> and have it expand to \hey{\hey
Right now, I think I need to type bling<space><space>bling<space> to get \hey{<space>\hey{. After this, I need to delete the extra <space>.
Perhaps I'm missing something. If not, I'd really like to be able to choose my non-word delimiters.
Bill
Allowing other characters for expansion start
Started by louabill, Jun 11 2008 11:05 AM
1 reply to this topic
#1
Posted 11 June 2008 - 11:05 AM
#2
Posted 12 June 2008 - 10:15 AM
louabill, on Jun 11 2008, 11:05 AM, said:
It would be nice if the user could specify the characters which delimited chunks used for expansion. For example, I often need to type things like foo{bar and I would like bar to expand, so I would like to tell SpellCatcher "treat { as though it were a space"
Along the same lines, suppose bling expands to \hey{ and does not include the trailing space when expanded. It would be nice to be able to type bling<space>bling<space> and have it expand to \hey{\hey
Right now, I think I need to type bling<space><space>bling<space> to get \hey{<space>\hey{. After this, I need to delete the extra <space>.
Perhaps I'm missing something. If not, I'd really like to be able to choose my non-word delimiters.
Bill
Along the same lines, suppose bling expands to \hey{ and does not include the trailing space when expanded. It would be nice to be able to type bling<space>bling<space> and have it expand to \hey{\hey
Right now, I think I need to type bling<space><space>bling<space> to get \hey{<space>\hey{. After this, I need to delete the extra <space>.
Perhaps I'm missing something. If not, I'd really like to be able to choose my non-word delimiters.
Bill
You can do this, if you don't mind a little messing around with PropertyListEditor (or equivalent).
As far as the extra backspace, you can simply select the "Suppress separator" option for a given shorthand expansion to avoid having to backspace over the trigger character (no plist editing involved, there, of course!).
As far as specifying additional separators, you need to edit the com.rainmaker.SpellCatcher.plist file, and specifically the value for the SCExtraWordSeparatorChars key. Just append the brace to the existing string, and log out and in again.
Be careful - don't add characters that really shouldn't be considered separators, like alphanumerics. It would cause havoc with the parser as far as spell checking is concerned!
Let me know if you have any trouble, I haven't tried this in quite some time...





