atom / autocomplete-plus

View and insert possible completions in the editor while typing
MIT License
960 stars 263 forks source link

Issues navigating the suggestion menu #265

Closed lcosmin closed 9 years ago

lcosmin commented 9 years ago

I'm on OS X, atom 0.179.0, go-plus 3.2.2 and autocomplete-plus 2.1.6.

I've configured autocomplete-plus to use up and down for navigating the suggestion list; two issues I've noticed: ctrl-p and ctrl-n work (properly!) even though the setting says up, down and using the arrows is buggy, the suggestion list closes on the first keypress (up or down) and usually works ok after I type a few more chars (from the text I want completed).

joefitzgerald commented 9 years ago

Do you have anything in your keymap?

lcosmin commented 9 years ago

Nothing customized in my keymap (everything is commented in keymap.cson) I noticed something using the "Key Binding Resolver", not sure if useful/relevant: when the autocompletion popup closes on pressing down (or up), i see two events (?):

core:move-down                body                                  /Applications/...../darwin.json
native!                       body.native-key-bindings              /Applications/....../base.json

but when the popup is working properly, I see three:

autcomplete-plus:select-next atom-text-editor.autocomplete-active   atom-text-editor.autocomplete-active 
core:move-down                body                                  /Applications/...../darwin.json
native!                       body.native-key-bindings              /Applications/....../base.json
hachre commented 9 years ago

I've got the same problem on OS X. For me up/down just always moves the cursor in the editor instead of allowing me to choose something from the menu. I haven't gotten it to work once. My keymap file is empty. Recent versions of the same packages as mentioned in the post above. If you need any more info let me know.

Additional info: When the menu pops up by itself the cursor keys don't work. However when I use cmd + shift + space to pop it up manually they do work.

tststs commented 9 years ago

+1

To reproduce this:

benogle commented 9 years ago

I have seen this before, but I am not able to reproduce with your steps, or anything else right now. I can get the inverse, though: filter down to one item, then the up/down keys do not move the cursor.

benogle commented 9 years ago

And I take all of that back. The key is that the first time it pops up, it must have only one suggestion.

Thanks for the steps @tststs