atom / autocomplete-plus

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

Using autocomplete with enter key for confirmation hijacks other enter key functions. #1069

Open zyansheep opened 5 years ago

zyansheep commented 5 years ago

Description

When I'm coding in C++ I use the bracket-matcher package to put brackets on the next line. However, if I want to use the enter key as the autocomplete confirmation button, it doesn't put the bracket on the next line and instead just puts the auto completion between the 2 brackets.

Expected behavior: void test(){

}

Actual behavior: void test(){Randomautocompletionhere}

This also happens after semicolons lets say I'm typing: x = 0;[enter] and it auto-completes after the semicolon instead of making a newline. x = 0;randomautocompletionhere

Versions

Atom: 1.14.0 autocomplete-plus: 2.42.3

Additional Information

I am also using autocomplete-clang (0.12.0) but it doesn't seem to affect the bug when I turn it off.

I'm not sure if this is a bug or an intended feature, but if it is intended I would love some insight on how it could be changed.

TiriaAndersen commented 4 years ago

I have the same problem as well.

Same versions of Atom and autocomplete-plus. Also using autocomplete-clang (ver. 0.12.1). Using Windows.

Could there be a setting to not get suggestions until at least one character is typed? Or an additional/customisable keymap for confirming a suggestion, other than tab or enter?