Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [projectile]

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

0
votes
0answers
4 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
8 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
10 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
21 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 ...
0
votes
0answers
10 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
0answers
22 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
67 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 ...
1
vote
0answers
54 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
63 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
62 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
0answers
19 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
0answers
104 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
1answer
81 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) (...
1
vote
1answer
145 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 ....
0
votes
1answer
63 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 ...
0
votes
0answers
33 views

Open all files from an project like projectile or ffip

I been looking for this features in few different "project managing" packages. Basically I try to find some way to open all files cached in e.g. ~/.emacs.d/projectile.cache at once. I cold write some ...
0
votes
1answer
82 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 ...
3
votes
2answers
48 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 ...
1
vote
0answers
42 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
49 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
2answers
218 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
2answers
106 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?
0
votes
1answer
84 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 ...
0
votes
1answer
41 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 ...
1
vote
1answer
294 views

capture template for org-projectile?

Is there a way to define a capture template for org-projectile/capture (SPC a o p)? The default capture template creates a todo in root and I'd rather have it under Tasks (/Project Name/Tasks/<the ...
1
vote
1answer
193 views

projectile-run-project without prompt

When I execute the function projectile-run-project I'm prompted to enter a run command. Fortunately the run command is already pre-set, because I added projectile-project-run-cmd to .dir-locals.el. ...
0
votes
0answers
20 views

How not to include elpa autoload files to projectile-find-file cache list?

So, every time I update a few packages in emacs, all of the autoload files for those packages gets added to the projectile-find-file cache list. Anybody know how to workaround this issue? Thanks
2
votes
1answer
165 views

Show counsel-ag results in separate buffer?

I use counsel-projectile for Ivy + Projectile interoperability. But, when I run something like C-c p s s / M-x counsel-projectile-ag, the results are shown in the minibuffer, and I can't see any ...
2
votes
1answer
202 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 ...
1
vote
1answer
349 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
262 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 ...
1
vote
0answers
263 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/...
2
votes
0answers
86 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)) ...
4
votes
2answers
186 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
48 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 ...
5
votes
0answers
1k views

Best practice for Emacs Helm setup after (use-package) verse [closed]

Just recently discovered use-package (a macro written by John Wiegley) that comes in handy if you want to avoid .emacs bankruptcy declaration and keep things tidy in your configuration dot file. ...
4
votes
2answers
662 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
2answers
138 views

Incremental Search across Projectile project

How do I perform isearch over a whole projectile project, so that I can cycle through all occurrences of a string? This would be equivalent to multi-isearch-file for all files in the projectile ...
5
votes
1answer
2k views

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 ...
4
votes
1answer
93 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.
1
vote
1answer
494 views

Projectile: show project open buffers when switching project

I have a very large project and generally I work on multiple related projects simultaneously. While switching project I have to type full name everytime (multiple similar named files under different ...
1
vote
0answers
75 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 ...
0
votes
2answers
639 views

Projectile indexing won't work on Windows

I can't get helm-projectile-find-file to work on Windows. When I run it I get the error message "FIND: Parameter format not correct". Given how similar that is to the native windows find.exe default ...
0
votes
1answer
236 views

Ignore all git projects under a directory for projectile

I am trying out exercism.io and whenever I fetch any problem and build, it gets added to projectile-known-projects and now I've a whole bunch of projects under projectile-known-projects which I do ...
8
votes
1answer
483 views

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 (...
4
votes
1answer
354 views

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: ;; ...
2
votes
0answers
113 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?
1
vote
1answer
39 views

how to autoload emacs mode if folder contains specific file?

I'm writing a custom build mode (mybuild-mode) for custom build tool and want that mode to be autoloaded in case I'm in the folder which contains mybuild.sh file. Also my mode depends on projectile (...
4
votes
2answers
169 views

Delete trailing white space from all projectile project files

Problem So the problem is pretty straight forward I'm just trying to get delete trailing spaces from all files in a projectile project. Here's what I've tried so far: (defun projectile-delete-...
1
vote
2answers
62 views

helm find projectile file: how to view the file content when choose the file?

when run the command of helm-find-projectile-file, it will show a file lists in the mini buffer, and then I can use up and down key to select the file I want to view. But is it possible to view the ...