justinmahar / SublimeCSAutocompletePlus

CoffeeScript autocompletions and more!
172 stars 12 forks source link

method / property name "insertions" for custom types #31

Closed Iristyle closed 11 years ago

Iristyle commented 11 years ago

Like arguments that may be aliased to show one thing in the completion drop-down, but insert text into the document in another manner, I would like to see the property and method names be configurable for custom types.

In a couple cases, angular extends an existing API during mocks, and I want to annotate those function calls with something like [ngMock] so you know that it's only available when writing tests. Here's an example - https://github.com/Iristyle/SublimeCSAutocompletePlus/blob/0e03da8c99a3b00d7e7a25dc3d757ee8077d7cac/CoffeeComplete%20Plus%20Custom%20Types.sublime-settings#L1718