-
Notifications
You must be signed in to change notification settings - Fork 5
An API for other Packages to use this. #10
Comments
Or allow us to extend it by doing something like {Autocomplete} = require 'atom' which doesn't seem to work |
So for your use case, you want to just open the autocomplete view in the current editor populated with a list of words that your package would be providing? |
Correct. And I would want callbacks for selected item, that kind of thing. |
A discussion on the matter: http://discuss.atom.io/t/depending-on-other-packages/2360/4 |
Okay, so would you still want the default behavior where the selected word is inserted into the editor or do you want to take that over in your package and do something custom when a word is selected? |
Probably not. if inside a doc block you type I already have the author snippet in my snippets: 'author':
'prefix': 'author'
'body': '@author ${1:[author]}' |
@JAStanton since you're providing the items is https://atom.io/docs/api/v0.64.0/api/classes/SelectListView.html suited for your needs? |
@amccloud it almost does but there is a lot of logic inside of AutocompleteView that I would be straight up copying and pasting. |
I ended up just copying the source of autocomplete class over to my package. |
+100000 on this |
I updated my package I hope that something like this finds its way into the original autocomplete plugin some day. :) |
@saschagehlich I think we should definitely upstream the Provider API you guys defined. I'm going to spend some time this weekend putting a PR together against this repo to achieve that. |
Extended discussion here: https://discuss.atom.io/t/what-can-we-do-to-improve-autocomplete/13001 |
This package is deprecated and no longer shipped with Atom. If this is still an issue using the autocomplete-plus package, please open up a new issue on that repository, thanks. |
It would be great if there was an API on this package that would allow me to spin up an instance of the AutoComplete whenever / wherever I wanted.
The text was updated successfully, but these errors were encountered: