Page 1 of 1

Autocomplete auto-popup

Posted: 26.10.2020 17:59
by dhealey
Does CudaText have a mode/plugin that supports this. So that the autocomplete appears while typing rather than having to press a key combo?
Peek 2020-10-26 17-52.gif

Posted: 26.10.2020 21:41
by Alexey
I used Option Editor plugin, typed "autocom" and found this option:

autocomplete_autoshow_chars
Auto-show auto-completion after typing N word-chars (0: disabled)
Option is for lexer-specific configs, not for user.json config.

Posted: 26.10.2020 22:02
by dhealey
Thank you!

Posted: 26.10.2020 22:13
by dhealey
I have the Atom Javascript snippets installed but when I type log, it shows in the autocomplete but hitting enter doesn't expand it to console.log(), it just types log();
Peek 2020-10-26 22-11.gif

Posted: 27.10.2020 07:25
by Alexey
"log()" is from auto-complete static file,
data/autocomplete/JavaScript.acp. So delete this file. Maybe I should delete it from distro? Is it needed?

And SNIPPET "console.log" must not be in autocomplete. It is snippet.

Posted: 27.10.2020 07:27
by Alexey
BTW, we have smart JS autocompletion in plugin JS Tern. It worked, but not much users use it.

Posted: 27.10.2020 12:16
by dhealey
I see, I thought autocomplete pulled from snippets as well, I didn't realise it was separate.

Posted: 27.10.2020 12:44
by Alexey
Snippets-plugin handles Tab key.. but auto-complete is Ctrl+Space.

EDIT
I will detete JS .acp file.