justinmahar / SublimeCSAutocompletePlus

CoffeeScript autocompletions and more!
172 stars 12 forks source link

Nothing Happens When I Type A Dot #19

Closed timscott closed 11 years ago

timscott commented 11 years ago

I have installed CoffeeComplete Plus via Package Control. No errors. But nothing happens when I type a dot after a word. After I start typing, autocomplete starts but it's not offering anything beyond native Javascript methods. I tried the example from your docs, LavaLamp. When I type this.c I am not offered coolDown for example. What could be wrong?

kamilbiela commented 11 years ago

I can confirm this - I have installed fresh sublime and added only this plugin. And its not working. Using sublime on Ubuntu 12.10 64bit.

degorov commented 11 years ago

Do you press Ctrl+Space after you type a dot?

timscott commented 11 years ago

When I press ctrl+space my application launcher (Alfred) is activated. I was not able to figure out how to remap that. To no avail, I tried this:

{ "keys": ["super+ctrl+."], "command": "coffee_autocomplete" }

The documentation implies that the auto complete will automatically engage when the dot is typed. Under what conditions should we expect to have to use the manual key combination?

Just to reiterate, even when autocomplete appears, after I start typing, it does not really work. That is, it only offers built in JS methods.

timscott commented 11 years ago

Okay, I turned off Alfred, and ctrl+space now engages the autocomplete menu, and it does have my custom methods in it. So two questions:

  1. How can I remap the manual autocomplete keybinding to something else?
  2. What determines whether the autocomplete engages immediately when the dot is typed vs. requiring it to be manually engaged?
eclifford commented 11 years ago

I'm having the same problem. It works if I type cntrl + space but according to the documentation it's supposed to bring up the contextual menu automatically after a . or @ correct?

justinmahar commented 11 years ago

Welp, the settings to make this happen aren't being read in by Sublime Text, so I added a section to the README on how to configure this.

https://github.com/justinmahar/SublimeCSAutocompletePlus#customizing-autocomplete-trigger

It's an easy change. Let me know if that works for you all!

-Justin

justinmahar commented 11 years ago

Tim Scott: CoffeeComplete+ uses the default autocomplete key binding, which is ctrl+space. This is the same shortcut used for all autocompletions across the board (not just CoffeeComplete). You can change this by going to Preferences -> Key Bindings and looking for "auto_complete". In my settings, I have:

    { "keys": ["ctrl+space"], "command": "auto_complete" },

You can change this shortcut to whatever you want. I suspect the other plugin you're using overwrites this shortcut.

Just to be clear, as of now, the plugin does not, by default, have autocomplete triggers for . and @. Go to the config section of the readme to set this up.

timscott commented 11 years ago

@justinmahar Perfect, got it. Thanks!

eclifford commented 11 years ago

@justinmahar Thanks! got it working to.