Thanks for the details on your setup. It’s not related to git repositories but more about the IntelliJ setup. IntelliJ only indexes files which belong to a project. It should be possible to extend this to files outside, i.e. for libraries, but I’ll have to check that.
Regarding the project settings: I don’t think that automatically adding all scripts of a project will be good. At least in my experience many scripts are self-contained or limited to a few calls to
shellcheck source= comments are great for that. Now, adding all the files of a project, would create a bunch of issues: possibly unresolved variables and functions at runtime when the file isn’t actually including all the files, too many unrelevant completions, unclear (re)definitions of variables, etc.
I assume that you and the other developers use some kind of build system when you’re working with other languages and that IntelliJ is syncing the build definition to the project setup.
For now, I’d like to avoid adding something like a propietary library setup file.
It might be possible to add a smart inspection, which analyzes a loop over calls to
source and suggest sa suitable library setup. But I’ll have to think a bit about this
At least for the initial version I expect that it’s not perfect for all, but with more feedback we’ll hopefully get to a point where it’s good for most.