tabnine-sublime icon indicating copy to clipboard operation
tabnine-sublime copied to clipboard

Disable on particular file types, say 'markdown' files

Open saneef opened this issue 7 years ago • 5 comments

Is there any option to ignore certain files (probably through regex). In my case I would love to disable on '.md' files for some projects.

saneef avatar Nov 17 '18 06:11 saneef

It might be better to implement this independent of the client. A file like .tabnineignore on top of .gitignore might do the job.

demircancelebi avatar Nov 22 '18 18:11 demircancelebi

.tabnineignore actually already works (but only for constraining indexed files). The Sublime Client will need to be aware of this because it suppresses the built-in autocompletion, so it needs to un-suppress it when TabNine is disabled.

zxqfl avatar Nov 22 '18 19:11 zxqfl

Any word on this? I've one window open with a project that's not a git repo and TabNine is working. Is there a way to just turn it off/on globally?

breck7 avatar Aug 03 '19 15:08 breck7

The normal way to do this would be adding "ignored_packages": ["TabNine"] to the markdown syntax-specific preferences. But for me this doesn't disable TabNine.

ajnisbet avatar Jun 13 '20 18:06 ajnisbet

@ajnisbet But, according to the docs only Editor settings can be specified in syntax-specific settings.

Editor Settings: These settings affect the behavior and functionality presented when editing text in a file. Examples include the font_face, tab_size and spell_check. These settings are presented in the first section of the default settings file. ... Application Behavior Settings: These settings affect the behavior of the application, across all open windows. Examples include the hot_exit, index_files and ignored_packages. These settings are presented in the third section of the default settings file.

saneef avatar Jun 13 '20 18:06 saneef