Autocomplete auto-popup

Post Reply
dhealey
Posts: 40
Joined: 14.12.2019 12:30

Autocomplete auto-popup

Post 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
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post 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.
dhealey
Posts: 40
Joined: 14.12.2019 12:30

Post by dhealey »

Thank you!
dhealey
Posts: 40
Joined: 14.12.2019 12:30

Post 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
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post 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.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

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 »

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 »

Snippets-plugin handles Tab key.. but auto-complete is Ctrl+Space.

EDIT
I will detete JS .acp file.
Post Reply