Page 1 of 1

Autocomplete for "(none) lexer/TXT" files

Posted: 26.01.2017 09:01
by Rigido
Hi,
I was wondering if it is possible to enable auto-completition for text files with no lexer applied as SynWrite does.
I thought that plugin "In-text Completition" was what I was looking for, but I cant figure how it works.
So I searched on default.json and found:

Code: Select all

  //Auto-show auto-completion after typing N word-chars (0: disabled)
  "autocomplete_autoshow_chars": 0,
  //Addition to prev option: for which lexers (comma-separated, empty: disabled)
  //Don't add here lexers HTML/CSS, they have own auto-show
  //(which is intelligent, only at needed HTML/CSS place).
  "autocomplete_autoshow_lexers": "",
Let's say I will put a "3" on "autocomplete_autoshow_chars", what I have to put in "autocomplete_autoshow_lexers"? Will it work on text files too?

Thanks.

Posted: 26.01.2017 09:27
by Alexey
>auto-completition for text files with no lexer applied as SynWrite does.
No, you need 1) make at last empty lexer 2)make autocomplete-plugin for THIS lexer. (use name of lexer in install.inf)

Posted: 26.01.2017 10:19
by Alexey
I see that "Complete from Text" plugin works, for all lexers, and none-lexer too. (Exception).

Posted: 02.02.2017 10:06
by Rigido
Alexey wrote:I see that "Complete from Text" plugin works, for all lexers, and none-lexer too. (Exception).
Thank you Alexey, it works like a charm.
It will be possible to make auto-show work? :)

Posted: 02.02.2017 11:05
by Alexey
With "Complete from text"? will see how to make it.

Posted: 02.02.2017 11:37
by Rigido
Alexey wrote:With "Complete from text"? will see how to make it.
Yes, I dropped the "In-text Completition" and switched to "Complete from text".

Thanks.

Posted: 02.02.2017 13:21
by Alexey
i reported issue to Intext Completions- https://github.com/kvichans/cuda_intext ... /issues/11
Maybe your issue?

Posted: 02.02.2017 13:38
by Rigido
Your plugin works way more better, with In-text I add to set ctrl-space shortcut by myself.
Yes, the biggest issue I found was the one you reported.

Posted: 05.02.2017 00:09
by Alexey
fixed: autocomplete_autoshow_lexers option can work for none-lexer, set it as "-". (CT 1.6.7.1)