Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

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

Open
zyansheep opened this issue Nov 3, 2019 · 1 comment

Comments

@zyansheep
Copy link

zyansheep commented Nov 3, 2019

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
Copy link

TiriaAndersen commented Dec 9, 2019

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants