justinmahar / SublimeCSAutocompletePlus

CoffeeScript autocompletions and more!
172 stars 12 forks source link

[], {} and '' #2

Closed degorov closed 11 years ago

degorov commented 11 years ago

Would be great if plugin detected a = [] as array, o = {} as object and s = 'string' as string. Now only new Array(), new Object() and "string" work.

justinmahar commented 11 years ago

Thanks Dmitry. I just tried a = [], then autocompleting "a." and at least that is working. The other cases do not work--I'll look into adding the support.

degorov commented 11 years ago

For me testarr = [2, 3] testarr.[autocomplete] works fine, but testarr = [] testarr.[autocomplete] doesn't.

P.S. Thanks a lot for the plugin! I started working on plugin with the same functionality almost at the same time, but I am not really a Python guy. Forked your repo, going to work on syntax definitions files.

justinmahar commented 11 years ago

Added support for single quote 'string' and objects {}. For the life of me I can't get arrays to break like you say. If it's still an issue please make another Issue for it.

justinmahar commented 11 years ago

Also, you're welcome for the plugin. I was going crazy without something like this.