atom / toggle-quotes

An Atom package to toggle between single and double quotes
MIT License
77 stars 36 forks source link

Instead of escaping quotes, optionally reverse quotes. #22

Open ProLoser opened 9 years ago

ProLoser commented 9 years ago

So I can go from "hello there 'bob', you 'asshole'" to 'hello there "bob", you "asshole"'

Very handy when cleaning up other people's string-encapsulated HTML.

jasonrudolph commented 9 years ago

That would be awesome. If I recall correctly, TextMate's "toggle quotes" functionality worked exactly that way. It wasn't an optional feature though, that was the way it worked.

lee-dohm commented 9 years ago

I would support it working the suggested way as an option, but not as the only way. There are times when it would change the semantics of the inner text to change the inner quotes.