dhealey
Posts: 40 Joined: 14.12.2019 12:30
Post
by dhealey » 26.10.2020 17:59
Does CudaText have a mode/plugin that supports this. So that the autocomplete appears while typing rather than having to press a key combo?
Alexey
Posts: 1633 Joined: 05.10.2012 22:10
Post
by Alexey » 26.10.2020 21:41
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.
dhealey
Posts: 40 Joined: 14.12.2019 12:30
Post
by dhealey » 26.10.2020 22:13
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();
Alexey
Posts: 1633 Joined: 05.10.2012 22:10
Post
by Alexey » 27.10.2020 07:25
"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.
Alexey
Posts: 1633 Joined: 05.10.2012 22:10
Post
by Alexey » 27.10.2020 07:27
BTW, we have smart JS autocompletion in plugin JS Tern. It worked, but not much users use it.
dhealey
Posts: 40 Joined: 14.12.2019 12:30
Post
by dhealey » 27.10.2020 12:16
I see, I thought autocomplete pulled from snippets as well, I didn't realise it was separate.
Alexey
Posts: 1633 Joined: 05.10.2012 22:10
Post
by Alexey » 27.10.2020 12:44
Snippets-plugin handles Tab key.. but auto-complete is Ctrl+Space.
EDIT
I will detete JS .acp file.