Hi, as pointed out here: https://forum.sublimetext.com/t/vintage-surrounding-double-quotes/2875/3&hilit=quotes+selection#p16634, typing single or double quotes when some text is selected just replaces the selection.
I’d like to change this behavior, via settings if possible, otherwise if not.
Whether it’s configurable or not, I also want another feature, aid for string interpolation, which is present in textmate for the ruby bundle: if there’s a selection in text delimited by double quotes, the selection must be wrapped in #{…}; if no selection is present and the cursor is in a string, #{} should appear; in the other cases, just a plain # should appear.
Something similar is also present in javascript, where many template libraries use %{} for string interpolation.
Now:
- is it possible to make quotes do the right thing with selections, or writing a plugin is needed to achieve this?
- would you please suggest me what to read and where to look (maybe some existing similar plugins?) to implement aid for string interpolation?
Thank you.