Hi all,
I would like to add the following enhancement to ruby, but I don't know how to go about it. Let me explain it in a workflow:
1. Select word or phrase within a quoted string. i.e. "hello world count" (glowing text is selected text).
2. Press shift+3 on the keyboard to type in '#'
3. The selected phrase now becomes enclosed in #{}. i.e. "hello #{world count}".
Another desirable simpler workflow would be as follows:
1. I press Shift+3 on the keyboard to type in '#' while I'm within a quoted string.
2. I get "#{%\c}" where the cursor, %\c, is between the two brackets where I can type ruby code.
I have to do this in ruby very often, and I saw this really useful feature in TextMate and would like to replicate it in SE.
Any help appreciated,
Ted