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
4
votes
2answers
942 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
69 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
39 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 ...
2
votes
1answer
733 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
381 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
1k 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
357 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
1answer
342 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
107 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
136 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 ...
2
votes
0answers
103 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
3answers
828 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 ...
3
votes
2answers
442 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
325 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
198 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
672 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
791 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. ...
3
votes
1answer
478 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
518 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
1answer
1k 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-...
4
votes
0answers
791 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
435 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
155 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)) ...
5
votes
2answers
583 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: (...
2
votes
0answers
111 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 ...
6
votes
0answers
4k 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
3answers
2k 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
265 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 ...
9
votes
1answer
5k 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 ...
6
votes
1answer
337 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.
2
votes
1answer
893 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
102 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
2k 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
490 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 ...
13
votes
1answer
1k 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
900 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
174 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
45 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 (...
2
votes
2answers
273 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-...
0
votes
2answers
101 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 ...
3
votes
1answer
154 views

Open files in git repo that have been edited since a previous commit or branch

Is there a way to provide a list of files that have been edited since a previous commit or branch with helm and projectile integration? The use case is as follows: Create feature branch feat-my-...
1
vote
1answer
167 views

Why is the Projectile Git repository being set to the most recently cd'd directory?

When I run projectile-find-file in GUI (non-terminal) Emacs, the project directory is set to the directory I most recently cd'd to in a terminal window. Let's say that I have a home directory not ...
1
vote
0answers
175 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 ...
3
votes
1answer
452 views

Projectile and magit branch checkout

Every time I use M-x magit-status b b to checkout a different branch, the projectile cache is of course out of date. I then use M-x projectile-invalidate-cache to force projectile to rebuild its cache ...
7
votes
1answer
3k views

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

Ignore backup files in projectile

How to ignore emacs backup (*~) files in projectile? My code does not work. (use-package projectile :config (progn (setq projectile-globally-ignored-files (append '( ...
1
vote
0answers
55 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://...
0
votes
1answer
90 views

Global Modes not consistent?

Why are some global minor modes applicable before package initialize while some are not? e.g. In init file global-linum-mode works but projectile-global-mode doesn't. Why? Also, why is there no ...
1
vote
0answers
170 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
1answer
328 views

How can I map helm-projectile-grep to helm-projectile-ag?

I want to replace helm-projectile-grep with helm-projectile-ag without using default binding (C-c p s s). For example if I use helm-projectile-switch-project (C-c p p), then in the helm window I ...