Skip to main content

Questions tagged [projectile]

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

63 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7 votes
0 answers
1k views

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-...
pawel's user avatar
  • 171
6 votes
0 answers
1k views

projectile grep file filter

I'm trying to use helm-projectile-grep function on Windows 7, but it searches in every file, though in .projectile I excluded file types which I don't want to work with. Do I have to configure grep ...
Dmitry's user avatar
  • 213
5 votes
0 answers
317 views

Sort ripgrep results based on proximity to current buffer

I use counsel-projectile-rg to search within the project I work on. But there is my sub-project inside this big repo that most of my development is in. Is there a way to sort ripgrep results based on ...
SFbay007's user avatar
  • 584
5 votes
0 answers
1k views

helm-projectile-ag : How can I refine the grep results further?

I have a newb question regarding the use of Helm in the context of Projectile. I'm using helm-projectile-ag to grep for strings in a large code base. The performance is excellent, but I'm needing to ...
Rob's user avatar
  • 151
4 votes
0 answers
423 views

Keep projectile and treemacs in sync

Since projectile and treemacs are independent project and treemacs-projectile is written as helper. However I fail to understand the concept of it. I want to see all my projectile projects be shows ...
Xolve's user avatar
  • 141
4 votes
0 answers
1k views

Projectile not remembering remote projects

I'm using spacemacs and regularly use Tramp (via /sshx:) to open files, once I've opened a file in Tramp I can use projectile without any problems. However, projectile doesn't remember these projects ...
Anntoin Wilkinson's user avatar
4 votes
0 answers
390 views

Helm-projectile doesn't ignore files

I'm using helm with projectile and trying to exclude various files from the output that are project specific (i.e with .projectile files, not globally variable). The problem is that it never works for ...
4lex1v's user avatar
  • 613
3 votes
0 answers
150 views

Faster way to store an org link to an identifier in a projectile project?

I'm trying to come up with a faster workflow for storing org-file links to parts of a source code tree. I'm generally starting in my org file taking notes, doing a helm-ag to search for some function ...
Anton I. Sipos's user avatar
3 votes
0 answers
123 views

Restrict the ECB file tree to files known by projectile OR files not in my .gitignore?

As I am working more and more with these modern "compiles to Javascript" languages my ECB files view becomes more and more cluttered. Projectile seems to get things right out of the box by ignoring ...
Marcus Riemer's user avatar
3 votes
0 answers
541 views

Emacs crashing on OSX, no crash log file

My Emacs started to crash a lot without modifying .emacs or installing anything new. I can replicate the steps (using Helm, Projectile) by this: helm-projectile then I enter a query quickly and hit ...
lukas.pukenis's user avatar
2 votes
0 answers
106 views

Can I set a variable scoped to a perspective?

I have a large monorepo repository and open different parts of it in a persp-mode perspective. It would be nice if for all buffers owned by that perspective I could set for example projectile-project-...
George Mauer's user avatar
2 votes
0 answers
272 views

pop-to-buffer: Wrong type argument: window-valid-p, #<window 117>PNG warning: Interlace handling should be turned on when using png_read_image

I occasionally run into the following error when opening a new file with projectile: pop-to-buffer: Wrong type argument: window-valid-p, #<window 117>PNG warning: Interlace handling should be ...
Chris Stryczynski's user avatar
2 votes
1 answer
380 views

Helm/Projectile outside a project

I use the packages Helm and helm-projectile for navigating in Emacs. I ran into problems, when I use projectile-helm inside Helm, and I'm able to reproduce this with a empty Emacs init file. The ...
ReneFroger's user avatar
  • 3,890
2 votes
0 answers
195 views

Display projectile root in spaceline mode line

I use spaceline configured in the following way; (use-package spaceline :ensure t) (use-package spaceline-config :ensure spaceline :config (spaceline-helm-mode 1) (spaceline-emacs-theme)) ...
Mikael Springer's user avatar
2 votes
0 answers
313 views

How to find/grep in Python virtualenv with projectile/helm easier?

How I can customize helm/projectile behaviour to find files and grep in $VIRTUALENV dir easier? Or maybe I can write some function(s) to find/grep in virtualenv of current project?
sivakov512's user avatar
2 votes
0 answers
1k views

Helm not working on remote project (Tramp over SSH)

I'm working on a project that is kept on a shared server (server runs Ubuntu 14.04 LTS; my machine runs OS X 10.10.2). I access the server files via Tramp using a password-secured SSH connection. ...
JDRomano2's user avatar
1 vote
0 answers
60 views

projectile takes up 1 GB and makes everything slow

I added projectile a while back and it makes emacs bloat up memory from 25mb to about 1.16 GB and everything becomes very slow (loding emacs, saving files, opening new files, etc). I think it may be ...
Daniel's user avatar
  • 121
1 vote
0 answers
104 views

Projectile is not ignoring files

I followed the docs here and added lines to .projectile like -/build -/Docs/doxy I did that because I want typical projectile commands to ignore those sub-directories in my project directory. My &...
Rob N's user avatar
  • 649
1 vote
2 answers
355 views

grep contents of a set of files from find

I want to grep contents of all CMakeLists.txt files in a project (nested within a directory) so I can jump from each instance, like I would when running emacs grep function. In the examples below I'm ...
Spacemoose's user avatar
1 vote
2 answers
343 views

org-projectile agenda view?

I'm trying to create a custom agenda to show todos for the current project logged via org-projectile. Something like this: (setq org-agenda-custom-commands '(("p" "Current ...
Evan Davis's user avatar
1 vote
0 answers
239 views

how best to set the `projectile-regenerate-tags` command

I have a fortran project I'm working on and I cannot figure out the right way to use .dir-locals to set the projectile-tags-command here is my dir-locals.el file: ( (f90-mode (projectile-tags-...
Vince W.'s user avatar
  • 425
1 vote
0 answers
117 views

helm-ag (or equivalent) open selection in existing window?

If you run helm-ag (I typically do this with helm-projectile-ag, but I think it should be similar) and select a match, the file / buffer opens in the last used window. My question is this: If a you ...
karansag's user avatar
1 vote
0 answers
158 views

Best way to modify projectile types?

I've come to rely a lot on projectile-toggle-between-implementation-and-test to jump between implementation and test when developing Clojure. However when I tried to use it in my Haskell projects it ...
Magnus's user avatar
  • 259
1 vote
0 answers
234 views

Restore Spacemacs project windows layouts

Opening a project I would like the windows restored as I left them. E.g. tests.py on the left and a terminal /home/projectdir/>$ on the right: |-----------+-----------| | tests.py | >$_ |...
jjk's user avatar
  • 744
1 vote
0 answers
508 views

Tools for refactoring c++ code

What tools do you use to refactor c++ code? For example, how do you rename a variable or function that is spread across files? If the problem isn't language specific, there are text-based tools that ...
hrkrshnn's user avatar
  • 439
1 vote
0 answers
48 views

Is there a way to globally unignore a file in projectile?

I have a few files that are ignored in most of the .gitignore project files, like .env and local-values.yaml. Is there a way to not ignore them globally using projectile, so that I can find and open ...
banjomonster's user avatar
1 vote
0 answers
299 views

Open new frame when switching between projects in projectile

Regularly I am working in several projects at the same time, projectile has been great for helping me with all the mess, but now, I would like to open a different frame per project, i.e., If I switch ...
nanounanue's user avatar
1 vote
0 answers
601 views

How to automatically set default-directory to projectile-project-root?

emacs beginner here. I would like for the default-directory of any buffer that's part of a projectile project to be the project root. For example if I'm editing include/my_file.hpp and I do: :e src/...
user1832047's user avatar
1 vote
0 answers
113 views

include hg subrepository in projectile

I am using projectile in a project with many externals (hg subrepositories). Each subrepository is treated as a separate project by Projectile. Is there any way to configure Projectile to ...
ned_zeppelin's user avatar
1 vote
0 answers
199 views

Error in using "helm-projectile-find-file"

This is my config in init.el: (require 'helm-projectile) (projectile-global-mode) (setq projectile-completion-system 'helm) (helm-projectile-on) (setq projectile-indexing-method 'alien) (setq ...
moyotar's user avatar
  • 76
1 vote
0 answers
62 views

"stdin isn't a terminal" with helm-projectile?

Opening up helm-projectile-find-file keeps showing me this error: screenshot http://zc.d.pr/16fh0/1Ryb9GGB+ Anyone know how to get rid of this? Or what's causing it? Emacs config here: https://...
neezer's user avatar
  • 183
1 vote
0 answers
48 views

Minimum length for ido-completing-read

I'm trying to write an ido-completing-read-powered backend for projectile-find-tag. However, for really big TAG files, this is ridiculously slow when the user starts typing because there are so many ...
fommil's user avatar
  • 1,800
1 vote
0 answers
487 views

Projectile: how to exclude deep subdirectories by pattern?

Is it possible to exclude from a project all directories matching a pattern at other than the project root level? In my case, I want to exclude subdirectories (deeper than the project root level) with ...
kkm mistrusts SE's user avatar
0 votes
0 answers
13 views

projectile not showing files under a .git directory

I had a directory structure like this: .projectile lots of folders onefolder/nested/.git onefolder/bunch of other stuff when locked into the top-level project, none of the files under the .git ...
user129393192's user avatar
0 votes
0 answers
13 views

Projectile GDB Remote I/O

Trying to debug a remote application. On a different architecture system and have the I/O flooding my GUD command window. I'm wondering how I can launch gdb or configure GUD in a way to get the remote ...
Alec Cox's user avatar
0 votes
0 answers
28 views

Configure default build and run commands in projectile (on a per-project basis)

In a CMake project, how do I set the default commands to compile or run a project? (e.g. what shows up when I hit C-c p c)? I know there is a ".projectile" file that can be placed at the ...
user52366's user avatar
  • 141
0 votes
0 answers
15 views

Projectile test jump to failed test using gtest

I have projectile setup on a meson built cpp-project. I can compile and test via projectile just fine, i.e. projectile calls ninja and navigates the errors, warnings in the results. But the test ...
user92020's user avatar
0 votes
1 answer
30 views

What determines when a file is added to projectile-recentf?

I'm not really sure how it's supposed to work, but when I use helm-projectile-recentf, I don't find the most recent files. Sometimes I do and sometimes I don't;) I always find them with helm-recentf, ...
Jason Hunter's user avatar
0 votes
0 answers
406 views

Doom Emacs : Creating project using dired not working

I'm a new to emacs. So I just try to learn by using it. And What I'm trying to do is just making simple project. I make a directory in dired using + command. And inside that directory I create ....
codeDog's user avatar
0 votes
1 answer
42 views

How can I prevent projectiles from being removed?

Sometimes a network mount point is temporarily unavailable. If I use projectile during these times, projectiles gets removed. How can I prevent that?;)
Jason Hunter's user avatar
0 votes
1 answer
47 views

Ivy-dispatching-done (M-o) action list is not showing all options

I use counsel-projectile-switch-project to pop up a list of projects and M-o to bring up the action list, but the action list is like this. and there's no way to scroll to get the top options like &...
Sean's user avatar
  • 11
0 votes
0 answers
59 views

helm-projectile-[grep,ag] in all known projects

helm-projectile-[grep,ag] works great, but how can I grep all known projects?;) Is there a function already for that?
Jason Hunter's user avatar
0 votes
0 answers
392 views

Projectile alternative optimized for TRAMP?

I really enjoy Projectile but it continuously doesn't play nice with TRAMP. I was wondering if there were any Projectile alternatives out there. I tried searching the internet but all I get all ...
Noah Huppert's user avatar
0 votes
0 answers
584 views

Fuzzy filename search with `projectile-find-file` no more?

In order to perform a fuzzy search over file names in a project, I used projectile-find-file in the past. For example typing in 'a' would interactively restrict the search to all the files that start ...
anon2328's user avatar
0 votes
0 answers
224 views

`projectile-run-project` waits for compilation instead of running project

When I try to run my projectile project with projectile-run-project it prompts me for a run command. After running the command ./out.a it opens a *compilation* buffer and hangs because it's trying to ...
jan's user avatar
  • 103
0 votes
1 answer
118 views

Option similar to `vc-directory-exclusion-list` but for files create by build tools

I'm missing an option variable similar to vc-directory-exclusion-list that holds of a list of auto-generated directory names that contain temporary files that are typically but not exlusively created ...
Nordlöw's user avatar
  • 517
0 votes
0 answers
104 views

How to keep `projectile-find-file-hook` from taking a long time in non-project dirs?

I'm using org-mode and org-roam, with many org files in ~/Documents/org-roam (and its subdirs). Org sometimes opens lots of those files to find things. Since I have projectile-mode on globally, every ...
GaryO's user avatar
  • 496
0 votes
0 answers
175 views

How to call counsel-projectile-switch-project with a specified project?

The logic is that, if the default directory of a buffer has a certain prefix, then call consule-projectile-switch-project with a specific project, otherwise simply invoke counsel-projectile. My ...
FunkyBaby's user avatar
  • 807
0 votes
0 answers
329 views

Projectile session/state

Initially I scanned the user directory (~) for projects, through inexperience. Later I defined the project root (~/.doom.d/config.el): ;; Projectile settings. (setq projectile-project-search-path ...
Alexey Orlov's user avatar
0 votes
0 answers
200 views

Cannot navigate to recent projects in emacs dashboard: "Symbol's function definition is void: nil" error

Recently, I have not been able to open any of my recent projects that show up on the dashboard screen (package emacs-dashboard). If I move my cursor over one of the projects and press enter nothing ...
johnymm's user avatar
  • 163