We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [projectile]

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

44 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
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-...
5
votes
0answers
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 ...
4
votes
0answers
740 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 ...
3
votes
0answers
467 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 ...
3
votes
0answers
273 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 ...
2
votes
0answers
93 views

Nested git repositories that behave like one project with projectile

I am trying to understand how to use https://projectile.readthedocs.io/en/latest/projects/#customizing-project-root-files but it is not clear yet. My goal is to have nested git projects. Let's say I ...
2
votes
1answer
105 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 ...
2
votes
0answers
134 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)) ...
2
votes
0answers
77 views

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 ...
2
votes
0answers
143 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?
2
votes
0answers
113 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 ...
2
votes
0answers
869 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. ...
1
vote
0answers
29 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-...
1
vote
0answers
66 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 | >$_ |...
1
vote
0answers
92 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 ...
1
vote
0answers
45 views

How to open a file in a vertical split after using helm-projectile-find-file?

After selecting a file to load with helm-projectile-find-file, how can one load the target file in a vertical buffer?
1
vote
0answers
209 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 ...
1
vote
0answers
29 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 ...
1
vote
0answers
92 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 ...
1
vote
0answers
77 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 ...
1
vote
0answers
369 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/...
1
vote
0answers
94 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 ...
1
vote
0answers
161 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 ...
1
vote
0answers
53 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://...
1
vote
0answers
34 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 ...
1
vote
0answers
338 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 ...
1
vote
0answers
308 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 ...
0
votes
1answer
15 views

using cyphejor with projectile

Make names of major modes shorter in the mode-line describes a way to shorten the modeline with cypejor. However, it seems like projectile-mode is not shortened by cyphejor. Is there anything that ...
0
votes
0answers
22 views

how do I find a file with projectile when I know only parts of its “filename path”

I have projectile-find-file installed, it dynamically narrows the autocompletion list as I type characters. Supposed I'm looking for this file: components/frontend/app/views/frontend/press_releases/...
0
votes
1answer
39 views

Emacs / Projectile complains about no job control with Bash/terminal

I use Emacs 27.0.50 on Ubuntu 18.04. Fish is my default shell. When a file from a directory with .git is being loaded into the buffer, I'm trying to start projectile-find-file , I see the following ...
0
votes
0answers
27 views

Projectile renaming buffer name causing issues with ESS (ctrl enter) functionality

I have recently installed projectile package into my Emacs. It's great package, however, now my C-RET binding to ESS (R) is not working any more. Part of my current init.el related to ESS looks like ...
0
votes
0answers
30 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 ...
0
votes
0answers
44 views

Configure compilation mode to use custom shell

On windows I have set (setq explicit-shell-file-name "c:/Program Files/Git/bin/bash.exe") to use git-bash for e.g. M-x shell. In compilation mode however, the standard windows console still seems to ...
0
votes
1answer
59 views

Why does projectile-compile-project call “go build ./…”?

I just started to use projectile. I use it with a go project. When I call projectile-compile-project, go build ./... runs, but after that there is no binary. The same happens when I call go build ./......
0
votes
0answers
35 views

Projectile regenerating tags using global

I'd like projectile's projectile-regenerate-tags to run global -u. It seemed this was catered for with projectile-tags-command. Which is set to "global -u" in a project root .dir-local.el However, ...
0
votes
0answers
88 views

Compilation using projectile

I would like to recompile my project in the background with a single key press. I am using a function like this: (defun my/recompile-quietly () "Re-compile without changing the window configuration....
0
votes
0answers
45 views

counsel-projectile-find-file sort only sorts with no default project

Or at least that's what it looks like! It's a bit hard for me to isolate, but here's my particular setup: My goal is to use counsel-projectile-find-file, defaulting directory when I am not in a ...
0
votes
0answers
21 views

Apply evil-mode Macro to helm-ag Results

I love using helm-ag-edit within projectile to make bulk edits to many files in my project in one fell swoop. However, sometimes I want to apply keyboard macros (using evil-mode) to these files. The ...
0
votes
1answer
173 views

projectile-find-file and ivy - create file with subdirectories

I'm using ivy and projectile. When I search for some file with projectile-find-file, and the file does not exist, I would it to be created. If it is inside directories that also do not exist, ask if ...
0
votes
0answers
127 views

Recommendations for eval on save workflow for projects?

I've started to write a package and excessive use of the interactive eval-* functions has become a pain point for me. After I make a change re-evaluating entire file or package is almost always ...
0
votes
0answers
43 views

Pre fill minibuffer upon calling to helm-projectile function

Based on this answer, and its with-initial-minibuffer function, I am trying to call helm-projectile-grep, customizing minibuffer pre-filling. I try to avoid the default behaviour, which is to pre-...
0
votes
0answers
85 views

Make Helm Projectile to show external sources

I'm pretty new to emacs (was using Vim), primarily using it for Ruby on Rails projects. At my free time, I like to write some C code for STM32 micro-controllers. Unlike RoR project, C project for ...
0
votes
0answers
106 views

Projectile void variable `it`

Projectile, as of versions marmalade-0.10.0 and melpa-20150720.515, seems to have lost access to the it variable. I think that dash may have changed the variable's scope. How can I work around this? ...
0
votes
0answers
505 views

how can I set a Python virtual environment in any shells (open, or that will be opened) based on changing projectile project

I'm using Projectile and pyenv-mode (https://github.com/proofit404/pyenv-mode). pyenv-mode has projectile integration to update the virtual environment while switching projects. This is the code to ...