How to change an icon as you type

You might want to check out this post. I’ve written my own plug-in which works similar to the one referenced in that thread, but has some advantages. I will likely publish it to the marketplace at some point.