Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't autocomplete on Enter/CR-Key pressed #1462

Closed
gyaaniguy opened this issue Jul 25, 2019 · 5 comments
Closed

Don't autocomplete on Enter/CR-Key pressed #1462

gyaaniguy opened this issue Jul 25, 2019 · 5 comments

Comments

@gyaaniguy
Copy link

'Hell' autocompletes with 'Hello' , if a new line is created at the time.
I think its rather unintuitive. Programming is different as sentences rarely end with a word. A casual text editor can end with just 'hell'

@RaiKoHoff
Copy link
Collaborator

Feel free to test development beta version _5.19.725.2406_BETA (beta channel access see: #1129).
New configuration .ini-file: [Settings2] AutoCompleteFillUpChars=
To get the "Enter" completion behavior back, define: [Settings2] AutoCompleteFillUpChars=\r\n
I you like to allow more "fill-up" characters (accept completion item), just add them:
e.g. [Settings2] AutoCompleteFillUpChars=\r\n[(. (will accept completion item & adds the char).

@hpwamr : I like the disabled "Enter" for AutoCompletion (fluent writing), but to preserve the former behavior, we may define [Settings2] AutoCompleteFillUpChars=\r\n as default config 🤔 ?

@RaiKoHoff RaiKoHoff changed the title Dont autocomplete on enter. Don't autocomplete on Enter/CR-Key pressed Jul 25, 2019
@hpwamr
Copy link
Collaborator

hpwamr commented Jul 25, 2019

@RaiKoHoff , I agree. 🤔

@RaiKoHoff
Copy link
Collaborator

Small interview:

  • Vote for "keep former behavior" ('Enter' inserts auto-completion item) => check (:-1:)
  • Vote for "New default: 'Enter' no longer inserts auto-completion item (except configured) (:+1:)

@hpwamr
Copy link
Collaborator

hpwamr commented Sep 27, 2019

Hello @gyaaniguy ,
As far as I'm concerned, I think you (as requester) can close this issue...

@gyaaniguy
Copy link
Author

Oh wow. The change with this is phenomenal ! Never had used autocomplete in a notepad like app. But its so useful now. Thanks so much for this :)

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

No branches or pull requests

3 participants