codota/TabNine

TabNine should not index files in .git

zxqfl opened this issue · 6 comments

zxqfl commented
TabNine should not index files in .git

Ultimately it would be nice to have some ignore file (e.g. .tabnine.ignore) and combine it with .gitignore, like Rigpgrep does.

zxqfl commented

This is actually already implemented, you can create an .ignore file.

I would rather prefer to have it different name, since .ignore is used by grep-like tools (ack, ripgrep etc.). I think TabNine-specific ignore file may ignore stuff which still need to be grepped...

configurable name would be the best...

The .ignore file is supposed to be somewhat generic. ripgrep also supports a .rgignore file, and if TabNine is using the ignore crate, then it can add its own .tabnine.ignore file as well. So the idea is that you put universal ignore rules in .ignore, but application specific rules in .rgignore, .fdignore, .tabnine.ignore, etc.

zxqfl commented

Added .tabnineignore. @BurntSushi TabNine does use ignore, as well as regex -- thanks for the great libraries!