I am trying to understand how to use https://projectile.readthedocs.io/en/latest/projects/#customizing-project-root-files but it is not clear yet.
My goal is to have nested git projects. Let's say I have a directory structure like /a/{b,c}. Folders a, b and c have been created using git clone and all contain a .git
folder. From project a, I'd like to be able to use projectile-find-file over files of a, b and c.
Is it possible? Am I looking at the good documentation? Is it possible to enable this behavior only from one directory by using .dir-locals.el
?
.git
toprojectile-project-root-files-top-down-recurring
and removing it fromprojectile-project-root-files-bottom-up
will have the effect of making projectile keep checking the parent directory of any git root until it no longer finds a.git
file. This would mean that any directories between the real root and the submodule in question would also need to be submodules. (But the documentation for these options is quite difficult to follow -- I can't tell how "top" and "bottom" are being defined, specifically.).dir-locals.el
files below the actual project root, then one with((nil . ((projectile-project-root . "/path/to/project"))))
would also do the trick for file-visiting buffers at least.