atom / toggle-quotes

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

Toggle quotes does not work in Plain Text buffers #9

Closed deiga closed 5 years ago

deiga commented 10 years ago

Neither my custom binding nor the default bindings actually toggle quotes anymore.

deiga commented 10 years ago

Apparently it doesn't work for txt files and files with no extension

izuzak commented 10 years ago

@deiga Currently, the toggle-quotes package can toggle quotes only on strings, as detected by a language grammar. As a result, toggling quotes on in Plain Text files will not work since that's not recognized as a string (because plain text files don't have a grammar which defines strings). You should be able to toggle quotes normally if you switch the language for the file to something else (which does have strings defined in the language) using the grammar selector (ctrl-shift-L).

Does that explain the behavior you observed?

deiga commented 10 years ago

Yeah, thats sounds about right