Questions tagged [projectile]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
23 views

Use projectile-find-file after switching to a notes file that's not in the project directory

I have a "home file" with a keyboard shortcut of C-c h (used for writing quick notes, org style) How can I still use projectile-find-file, after switching to my notes file? The issue is the notes ...
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 ...
2
votes
0answers
92 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 ...
0
votes
2answers
137 views

a function to grep specified files?

My Emacs customizations reside in a few separate .org files, all in the directory ~/emacs-prelude/personal. I'm always searching these files to find and change settings. How can I define a function ...
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
58 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 ./......
1
vote
1answer
35 views

How can I configure projectile to use my `grep-find-command`?

I have a customized grep-find-command. (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should ...
0
votes
1answer
172 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 ...
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-...
2
votes
1answer
104 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 ...
0
votes
1answer
35 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 ...
2
votes
1answer
299 views

use-package won't load helm for projectile

I'm trying to use use-package to load projectile. Projectile uses helm for completion, which I'm also loading with use-package. Since projectile and helm have :bind sections I believe they're both ...
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 ...
9
votes
2answers
1k views

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 ...
4
votes
3answers
1k views

Stopping Neotree from constantly switching to the open file's directory?

I have the problem that, even when I'm in a projectile project, NeoTree always switches to the directory of the currently open file in the active buffer. Which is annoying to say the least. It used ...
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
3answers
430 views

Project management in projectile or other, like Sublime Text's projects

Ever since I first started using Emacs (Spacemacs) a few months ago I've been trying to set up a sane multi-project workflow. I got the single project workflow going by having Emacs start up into what ...
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 | >$_ |...
0
votes
2answers
85 views

How do you grep/ag in specific subdirectory of a project?

projectile-greps are probably the commands that I use the most. However, with some very large projects I am frequently interested in grepping only one subdirectory of the project. For my greps I ...
0
votes
0answers
43 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 ...
39
votes
4answers
16k views

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 ...
1
vote
1answer
59 views

Elisp expressions in projectile-replace-regexp

I need to execute a regular expression with case conversion in a entire project. If I run query-replace-regexp in a single file informing '\([A-Z]+\)' and '\,(downcase \1)', it works as expected. But ...
1
vote
0answers
89 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 ...
0
votes
1answer
39 views

Cannot jump to file or location link in grep-mode or compile-mode

I have recently installed emacs on a new system (Manjaro arch-linux), using my usual configuration (available here, if relevant). However, the jump function never works on this new system: whenever ...
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
87 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 ...
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
1answer
151 views

Is there an integration between projectile and python-mode that allows for one python interpreter buffer per projectile project?

I use projectile with python (and anaconda mode) to work in emacs. When starting an ipython interpreter buffer, the first such session works fine. However, attempting to start a second session, for ...
2
votes
1answer
308 views

Projectile buffer names with project relative filenames

I have a largish project with many hundreds of source files involved, and duplicate filenames. I would like to set the buffer names (automatically) to the (projectile) project relative path, instead ...
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?
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 ...
1
vote
1answer
479 views

Ignore .folder inside projectile project

In spacemacs, I want SPC p f to ignore one directory in the files it suggests. I followed the Projectile docs for ignoring files. I added a line to both my ~/.emacs.d/.projectile file and the ....
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 ...
0
votes
2answers
280 views

Get file name relative to projectile root

I am trying to write a little function to get the projectile relative path of a buffer. My idea is to delete the substring projectile-project-root from the string buffer-file-name. For example: root-...
3
votes
1answer
66 views

How to execute a function in all files in the git working tree?

How to invoke a function on all files in the git working tree, while opening the ones which have had no opened buffers beforehand? A potential use case: Check and fix spelling in all project files ...
1
vote
2answers
294 views

helm-projectile-ag use thing-at-point as input?

I want to use the current word as the input when I do helm-projectile-ag. That saves me the typing work. I didn't see this option in customize. How would I implement that?
1
vote
1answer
798 views

helm-projectile find file doesn't ignore some files

I'm using helm-projectile in spacemacs. I want helm-projectile to ignore all the files in .stack-work directory when running helm-projectile-find-file. I added .stack-work in projectile-globally-...
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 ...
0
votes
1answer
188 views

Projectile: where is the project name stored / set?

I'm using Projectile, and after seeing the really awesome .emacs file I decided to copy the lines that set the mode-line to display the project name, like so: :config (projectile-global-mode 1) (...
0
votes
1answer
146 views

Projectile: project view

Is there a way to have a buffer with a project view i.e. Project file tree? I have seen this before in Emacs but unsure if this is related to projectile or cedet though. Although I have a feeling ...
33
votes
2answers
10k views

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 ...
5
votes
1answer
192 views

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.
3
votes
2answers
76 views

project based ibuffer

I have emacs 27 on MacOS running in -nw mode. I have prelude installed. It comes with projectile. I regularly work on two git repos in my disk. ~/client1/ ~/client2/ In any given day, I would open ...
5
votes
2answers
347 views

How to set Projectile project name as frame title

I would like to have the Projectile project name as frame title and also have it updated when I switch between two different buffers in two different Projectile projects. I tried with the following: (...
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 ...
0
votes
1answer
232 views

How to search for files, directories or grep(ag) from a directory inside a project with helm-projectile?

helm-projectile makes you set a project before trying to find files or directories, or searching through files with ag. All the searches are then based from the project root. How does one start, for ...
4
votes
1answer
637 views

Regenerate ctags TAGS file without freezing Emacs for a while?

When I'm currently in a large project and I call the command projectile-regenate-tags, the project will be scanned by ctags and the tags will be stored in the TAGS file. While all this action is ...
0
votes
1answer
79 views

projectile suggests a file that does not exist

I am just starting to test projectile. My understanding is that projectile-find-file looks into my whole repository for the file I'm looking for. I am also currently working on the file structure of ...