Repository navigation
Does Projectile support a project made of more than 1 directory tree #2192
|
To clarify my question: can we set-up Projectile so that:
And when executing the I know one work-around way would be to add symlinks from the project to the library directory tree roots. I want to know if there is a mechanism in Projectile that provide the ability to do that without using symlinks. My question is for using Projectile features alone; without LSP/Eglot or any other Emacs package/feature involved. BTW: thanks for this super useful project! |
Replies: 2 comments 2 replies
|
so no, projectile has no builtin way to attach outside directories to a project. a project is exactly one root, for |
|
The sibling-project commands that landed on master recently cover most of this. List the extra trees in projectA's ((nil . ((projectile-project-siblings . ("~/my/lib/library-one" "/usr/lib/library-aaa")))))Then
|
so no, projectile has no builtin way to attach outside directories to a project. a project is exactly one root,
projectile-project-root-functionsonly decides which directory that root is, and the.projectilefile only lets u keep or ignore subdirectories under that root. ignoring.adoc says it straight, u can only include subdirectories, the+/src/fooentries are root relativefor
/usr/lib/library-aaathe symlink is unfortunatly the answer, projectile indexes through it fine. for the stuff under~/mytheres a small trick tho, a.projectilein~/mywith+/projectAand+/lib/library-onemakes~/mythe root with only those trees visible, and it wins over projectA's own.gitbecauseprojectil…