atom / toggle-quotes

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

Add support for toggling selections #36

Open Alhadis opened 9 years ago

Alhadis commented 9 years ago

This is currently what's in my Atom window right now. Additional 1898 values not displayed.

screen shot 2015-11-21 at 2 14 58 am

Needless to say, there's no damn way anybody in their right mind is gonna want to toggle each of those strings separately, so it's back to ye olde search-and-replace. Maybe add support for toggling strings that're enclosed by the buffer's current selection?

sjmcdowall commented 8 years ago

Just plugged this in to do exactly what you indicated -- was sorely disappointed when it didn't work. :(

mo commented 7 years ago

I would also be very happy if this was implemented.

A workaround if you want to switch all the quotes in a .js file is to run something similar to: eslint --parser-options=ecmaVersion:6 --no-eslintrc --no-ignore --fix --rule 'quotes: [2, single]' someFile.js

It would be much more flexible to have this plugin operate on an atom selection instead though.

borishere commented 7 years ago

Would be a useful feature.