autocomplete-plus icon indicating copy to clipboard operation
autocomplete-plus copied to clipboard

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

Open zyansheep opened this issue 6 years ago • 1 comments

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.

zyansheep avatar Nov 03 '19 01:11 zyansheep

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?

TiriaAndersen avatar Dec 09 '19 01:12 TiriaAndersen