Skip to main content
added 85 characters in body
Source Link
T. Verron
  • 4.3k
  • 2
  • 28
  • 58

I have a big version-controlled directory hosting a lot of half-independent bodies of work. I want to consider them all as projects for projectile.

So I added an empty .projectile file in each of them, with the idea that projectile would pick that up instead of the .git above.

So the situation is like this

~/main-directory/ -> .git -> project1/ -> .projectile -> file1 -> file2 -> project2/ -> .projectile -> file1 -> file2 

But if I open ~/main-directory/project2/file1 and call projectile-add-known-project, it considerconsiders the whole main-directory as one project. In particular, completion matches files with the same name in all subdirectories...

I have tried (setq projectile-project-root-files-bottom-up (delete ".projectile" projectile-project-root-files-bottom-up)), but it did not help.

Is there a simple way of telling projectile that the main-directory is not to be considered a project?

I have a big version-controlled directory hosting a lot of half-independent bodies of work. I want to consider them all as projects for projectile.

So I added an empty .projectile file in each of them, with the idea that projectile would pick that up instead of the .git above.

So the situation is like this

~/main-directory/ -> .git -> project1/ -> .projectile -> file1 -> file2 -> project2/ -> .projectile -> file1 -> file2 

But if I open ~/main-directory/project2/file1 and call projectile-add-known-project, it consider the whole main-directory as one project.

I have tried (setq projectile-project-root-files-bottom-up (delete ".projectile" projectile-project-root-files-bottom-up)), but it did not help.

Is there a simple way of telling projectile that the main-directory is not to be considered a project?

I have a big version-controlled directory hosting a lot of half-independent bodies of work. I want to consider them all as projects for projectile.

So I added an empty .projectile file in each of them, with the idea that projectile would pick that up instead of the .git above.

So the situation is like this

~/main-directory/ -> .git -> project1/ -> .projectile -> file1 -> file2 -> project2/ -> .projectile -> file1 -> file2 

But if I open ~/main-directory/project2/file1 and call projectile-add-known-project, it considers the whole main-directory as one project. In particular, completion matches files with the same name in all subdirectories...

I have tried (setq projectile-project-root-files-bottom-up (delete ".projectile" projectile-project-root-files-bottom-up)), but it did not help.

Is there a simple way of telling projectile that the main-directory is not to be considered a project?

added 3 characters in body
Source Link
T. Verron
  • 4.3k
  • 2
  • 28
  • 58

I have a big version-controlled directory hosting a lot of half-independent bodies of work. I want to consider them all as projects for projectile.

So I added an empty .projectile file in each of them, with the idea that projectile would pick that up instead of the .git above.

So the situation is like this

~/main-directory/ -> .git -> project1/ -> .projectile -> file1 -> file2 -> project2/ -> .projectile -> file1 -> file2 

But if I open ~/main-directory/project2/file1 and call projectile-add-known-project, it consider the whole main-directory as one project.

I have tried (setq projectile-project-root-files-bottom-up (delete ".projectile" projectile-project-root-files-bottom-up)), but it did not help.

Is there a simple way to tellof telling projectile that the main-directory is not to be considered a project?

I have a big version-controlled directory hosting a lot of half-independent bodies of work. I want to consider them all as projects for projectile.

So I added an empty .projectile file in each of them, with the idea that projectile would pick that up instead of the .git above.

So the situation is like this

~/main-directory/ -> .git -> project1/ -> .projectile -> file1 -> file2 -> project2/ -> .projectile -> file1 -> file2 

But if I open ~/main-directory/project2/file1 and call projectile-add-known-project, it consider the whole main-directory as one project.

I have tried (setq projectile-project-root-files-bottom-up (delete ".projectile" projectile-project-root-files-bottom-up)), but it did not help.

Is there a simple way to tell projectile that the main-directory is not to be considered a project?

I have a big version-controlled directory hosting a lot of half-independent bodies of work. I want to consider them all as projects for projectile.

So I added an empty .projectile file in each of them, with the idea that projectile would pick that up instead of the .git above.

So the situation is like this

~/main-directory/ -> .git -> project1/ -> .projectile -> file1 -> file2 -> project2/ -> .projectile -> file1 -> file2 

But if I open ~/main-directory/project2/file1 and call projectile-add-known-project, it consider the whole main-directory as one project.

I have tried (setq projectile-project-root-files-bottom-up (delete ".projectile" projectile-project-root-files-bottom-up)), but it did not help.

Is there a simple way of telling projectile that the main-directory is not to be considered a project?

Source Link
T. Verron
  • 4.3k
  • 2
  • 28
  • 58

How to mark a directory as "not a project" in projectile?

I have a big version-controlled directory hosting a lot of half-independent bodies of work. I want to consider them all as projects for projectile.

So I added an empty .projectile file in each of them, with the idea that projectile would pick that up instead of the .git above.

So the situation is like this

~/main-directory/ -> .git -> project1/ -> .projectile -> file1 -> file2 -> project2/ -> .projectile -> file1 -> file2 

But if I open ~/main-directory/project2/file1 and call projectile-add-known-project, it consider the whole main-directory as one project.

I have tried (setq projectile-project-root-files-bottom-up (delete ".projectile" projectile-project-root-files-bottom-up)), but it did not help.

Is there a simple way to tell projectile that the main-directory is not to be considered a project?