Questions tagged [projectile]

Projectile is a project management package and framework that facilitates operations against the project as a whole.

Projectile is a project management package and framework that facilitates operations against the project as a whole, such as *-find-file, *-multi-occur, *-test-project, and an alternate implementation of ff-find-other-file. It also has integrations with Helm via helm-projectile.

203 questions
58
votes
6 answers

How to exclude files from Projectile?

I am using the helm-projectile setup from prelude and it has been a huge improvement to my workflow. The only remaining issue are auto-generated files (e.g. generated by CMake) which show up during helm-grep and similar operations. Question: is…
Beginner
  • 2,711
  • 3
  • 18
  • 25
10
votes
1 answer

How can the list of projects used by Projectile be manually updated?

I use the command locate --regex '/.git$' | grep username to get a list of all the Git repositories under my $HOME folder. Is there a way to load them all into Projectile, to make them all instantly available?
vfclists
  • 1,403
  • 1
  • 12
  • 28
8
votes
1 answer

Projectile indexes my home directory, how do I stop it from doing that?

Since I updated the whole of my emacs third party packages projectile has started to see my home folder (which emacs opens in) as a projectile project. There is no .projectile file in my home folder, neither is my home folder under version…
Marcus Riemer
  • 539
  • 6
  • 16
8
votes
1 answer

Turn on projectile-mode only for files in actual projects

Projectile is pretty great, but I'm finding it difficult to have it turned on only in places where it would be effective. As I understand it, the two standard choices are to turn it on manually, as in major mode hooks, or to enable it globally with…
Sean
  • 939
  • 4
  • 13
7
votes
1 answer

Close other buffers with projectile

Projectile has a function to close all buffers related to a project (projectile-kill-buffers). Normally I also open non project related files during the day or emacs opens them when I'm stepping through compiler errors. Is there a way to close all…
kain88
  • 835
  • 7
  • 19
6
votes
1 answer

Can I make the projectile chosen project sticky and not follow the current buffer

Is it possible to make projectile only switch projects when calling projectile-switch-project, and not follow the buffers? When I switch buffers in emacs, projectile will switch project to the project that the current buffer belong to (if any). I…
Niclas W
  • 63
  • 3
6
votes
2 answers

Ignoring files in Projectile

After googling and being recommended projectile as project navigation, I ended up trying that. I'm now frustrated by the lack of tutorials and/or explanations on how it works, so I was hoping somebody here knew how to handle it. Here is my current…
Blobbey
  • 63
  • 1
  • 4
6
votes
2 answers

How to detect if in a project, then configure another key binding for Projectile?

I have a key binding that's bounded to helm-for-files. (define-key evil-normal-state-map (kbd "") 'helm-for-files) But when I enter a directory which is a project (to being recognized with .projectile file), then I would like to change the key…
ReneFroger
  • 3,850
  • 23
  • 66
5
votes
1 answer

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…
T. Verron
  • 4,283
  • 2
  • 24
  • 56
5
votes
1 answer

how do I write a projectile-switch-action that changes the current working directory to the chosen project's root dir?

I want that when I choose a project from the list presented by projectile-switch-project, projectile changes the current working directory to the chosen project's root directory. I tried this: ;; cd into dir i want, including git-root (defun…
ninrod
  • 1,506
  • 2
  • 13
  • 29
4
votes
1 answer

Adding a new project type to Projectile Mode

I would like Projectile Mode to recognize other projects besides the default ones (GIT, Maven, etc.) The README.md describes how to customize project root files, however it doesn't explain how Projectile learns what files belong to a project once it…
Eleno
  • 1,448
  • 11
  • 17
4
votes
2 answers

Projectile project in folder without write access?

At times I want to browse the code of projects to which I have read-only access. This makes it impossible for me to drop a .projectile file at the root of the project. Is there a way to define projects for use with projectile when I do not have…
nispio
  • 8,225
  • 2
  • 36
  • 74
3
votes
1 answer

Projectile - "PATH is not a project"?

For some reason, Projectile has stopped allowing me to add new projects. When I add the project, it seems to work. But when I select the project with C-c p p I get the following error: Not sure how to fix this.
Vinn
  • 293
  • 2
  • 8
3
votes
3 answers

Find in Project with Ack

Trying to find in Project with Projectile.. In the Projectile menu i have Find in project (grep) Find in project (ack) Grep works but if i try ack i get.. -*- mode: ack-and-a-half; default-directory: "~/Desktop/proj/" -*- Ack started at Mon Dec…
mustISignUp
  • 243
  • 1
  • 7
3
votes
1 answer

disable search in home folder with projectile

Sometimes I use dired to navigate in the home folder. If in that moment I press projectile-find-file, emacs will freeze and will take about 15 seconds to be ready to use projectile with the home folder. How can I tell projectile not to search in the…
Nisba
  • 905
  • 8
  • 19
1
2 3