Autocomplete for "(none) lexer/TXT" files

Plugins for SynWrite and CudaText...
Post Reply
Rigido
Posts: 20
Joined: 30.01.2015 10:00

Autocomplete for "(none) lexer/TXT" files

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

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

Post by Alexey »

I see that "Complete from Text" plugin works, for all lexers, and none-lexer too. (Exception).
Rigido
Posts: 20
Joined: 30.01.2015 10:00

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

Post by Alexey »

With "Complete from text"? will see how to make it.
Rigido
Posts: 20
Joined: 30.01.2015 10:00

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

Post by Alexey »

i reported issue to Intext Completions- https://github.com/kvichans/cuda_intext ... /issues/11
Maybe your issue?
Rigido
Posts: 20
Joined: 30.01.2015 10:00

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

Post by Alexey »

fixed: autocomplete_autoshow_lexers option can work for none-lexer, set it as "-". (CT 1.6.7.1)
Post Reply