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.

200 questions
59
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,661
  • 3
  • 17
  • 25
39
votes
2 answers

How to clear cache of projectile file in spacemacs?

I am using spacemacs and often use the SPC p f key binding to find files in a projectile project. But even after removing a file from a git, SPC p f will show me that deleted file. I tried using SPC p I to invalid the cache, but that didn't work.…
Daniel Wu
  • 1,711
  • 2
  • 17
  • 26
15
votes
1 answer

Projectile does not show all files in project

After visiting a file that is part of a git repository, Projectile acknowledges the existence of my git repository as a project, but it only lists one file (the current file) as being part of the project. As I visit other files in the project, they…
nispio
  • 8,175
  • 2
  • 35
  • 73
14
votes
2 answers

Mark and open multiple files with Helm and Projectile

Helm seem to support marking files in helm-find-files. Is it possible to open the marked files, each one inside of its own buffer from within the find file buffer? Update: I noticed that I was using helm-projectile-switch-project rather than the…
user66
13
votes
1 answer

Open helm search result in a new window?

Commands like helm-projectile-grep, helm-swoop, projectile-find-file are extremely useful for jumping around code. However, so far I've not found how I can open a search result in a new window (instead, right now pressing RET with a search result…
space_voyager
  • 709
  • 5
  • 19
12
votes
2 answers

Projectile with caching doesn't like new files

I use projectile for my project browsing. I have seen that it's really slow, so I turned on caching. Now it's fast (not blazingly fast, sadly). If I create a new file outside emacs itself, projectile doesn't find it. I can run cache invalidation but…
lukas.pukenis
  • 677
  • 6
  • 11
12
votes
2 answers

A search interface for org mode files

I use org-mode to take notes. Currently I have a root directory, say, "Notes", and there are several subdirectories inside it, for example, "Linux", "Programming", etc. The notes taken using org-mode are stored under those subdirectories. I was…
cutejumper
  • 787
  • 5
  • 12
11
votes
1 answer

How to use .dir-locals.el with Projectile?

I'm trying to ignore some file patterns while performing helm-projectile-grep and some with helm-projectile-find-file. I've found that it could be achieved using .dir-locals.el here. Following this chunk of documentation I've made my .dir-locals.el…
foki
  • 886
  • 8
  • 22
11
votes
6 answers

Recursive grep in directory with helm and/or projectile?

A recursive grep in a directory should be the simplest thing, but I haven't found the recipe to get it to work yet. I'm juggling between the following commands and am not sure which has the functionality buried within it: helm-find-files: The…
djechlin
  • 923
  • 8
  • 21
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,347
  • 1
  • 11
  • 28
10
votes
1 answer

variable project root folder in .dir-locals.el

I'm using company-mode for completion in C++ code. To tell clang backend of company where the include files for the current project are I have to use the following .dir-locals.el file ((c++-mode (eval setq company-clang-arguments (append …
kain88
  • 825
  • 7
  • 19
9
votes
3 answers

ibuffer: how to automatically create groups per project

I'd like to group my buffer list in ibuffer by project. Project is meant in the Projectile sense of the word. I don't want to change my Emacs configuration every time I'm working on a new project. Is there a way to achieve this automatically?
ckruse
  • 457
  • 3
  • 12
8
votes
1 answer

how to helm-projectile-grep for exact string?

How can I direct helm-projectile-ag and helm-projectile-grep to search for an exact string? If I enclose a string in quotes, I get no results. If I don't, I get fuzzy matching.
incandescentman
  • 4,111
  • 16
  • 53
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
  • 929
  • 4
  • 13
7
votes
0 answers

Projectile only sees project related to current buffer, if the buffer belongs to a project

I have two projects opened in my Emacs. Both are git repos and have .projectile files in their directories. Relevant lines in my init.el (projectile-global-mode 1) (helm-mode) (setq projectile-completion-system…
pawel
  • 171
  • 3
1
2 3
13 14