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
0
votes
0answers
7 views

How to periodically clear projectile's compilation cache directory for golang?

When I compile a Golang project with projectile-compile-project, I see that a go build cache directory on my system ~/snap/emacs/common/.cache/go-build grows very fast (each compilation seems to be ...
0
votes
1answer
52 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 ...
0
votes
1answer
48 views

How to filter search results by path pattern?

I'm using Projectile with ripgrep. I can search project lines by some pattern, as an example: test 42 will match strings like this so, test is not 42 at all I would like to be able to add additional ...
0
votes
0answers
20 views

In Projectile how can I exclude binaries which reside next to the source files from the search?

In some of my projects (which I manage with Projectile) binaries are generated in the same directory than the source files. The binaries have no extension (the source files of course do have an ...
0
votes
1answer
20 views

How can I get projectile-grep et al to choose the project before searching?

Projectile-grep, projectile-ag et al always execute the search in the current file's project. What I want to do is to select the project from a completion list and get projectile to search that ...
1
vote
3answers
42 views

Finding in certain projects only files with particular extensions when doing a project(ile) grep

I have projects where *.nim files are the source files and *.js files are the "compiled" files. When I issue projectile-grep (or project-find-regexp) in these projects I get both source and ...
0
votes
0answers
19 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 ...
0
votes
1answer
32 views

solve error: variable is void: projectile-mode-map

I'm trying to bind projectile-find-file to a keyboard shorcut and running in to this error. Apparently projectile is installed, because M-x listing shows at least a dozen projectile prefixed commands.
0
votes
1answer
86 views

How to change projectile-bookmarks.eld saving path?

emacs keeps generating file called projectile-bookmarks.eld in home directory. How could I make it to save that file under ~/.emacs.d/tmp or a different path? I also keep seeing Reverting buffer ‘...
0
votes
1answer
124 views

Adding directory local variable for projectile test command is not working

I'm setting up my python lsp using this video tutorial. My emacs init.el configuration file is here By default projectile-project-test-cmd runs the command python -m unittest discover. I want to ...
0
votes
0answers
26 views

spacemacs/helm-persp-switch-project behavior

I am using emacs, previously I updated my spacemacs and behavior of spacemacs/helm-persp-switch-project command has been changed. Old Flow Start(execute spacemacs/helm-persp-switch-project) If ...
0
votes
0answers
40 views

How to git stage a just-tangled file in `org-babel-post-tangle-hook`

I want to create a org-babel-post-tangle-hook that does a git stage buffer-file-name. There is a boring technical issue I have, which is that I don't know how to call magit-stage-file from elisp so ...
1
vote
1answer
298 views

Opening a file from a new/different Projectile project in the same workspace in Doom Emacs

If I'm working on one project and I switch over to a buffer from another the default behavior of Doom Emacs seems to be to open the new buffer in a new workspace (when workspaces are enabled). I want ...
2
votes
1answer
60 views

Recent files by project rather than recent files and recent projects separately

Note: This question is really about Projectile and Recentf. I'm using them in the context of Spacemacs, so I describe that context, but the question isn't really intended to be Spacemacs-specific. The ...
0
votes
0answers
63 views

Can `ivy-switch-buffer` add the current project's files (via `projectile`)?

I bind C-x b to ivy-switch-buffer and I've gotten used to the idea that pretty much all files I might want are in there (I use ivy-use-virtual-buffers to show recent files). But sometimes they're not, ...
0
votes
2answers
104 views

counsel-rg how to repeat last search?

When repeat invoking counsel-ag, counsel-rg, counsel-projectile-rg etc, how can I quickly bring back the previous search term without retyping the query?
0
votes
0answers
48 views

Projectile does not find svn command

I have a shared init.el emacs configuration for windows and linux (vm as well as mainOS). The VM is used for work. There we use svn and git repos. On Windows projectile works just fine with svn. I use ...
0
votes
2answers
170 views

elpy flymake does not recognize local .pylintrc

I have the following in the project root for my .pylintrc: [FORMAT] # Maximum number of characters on a single line. max-line-length=1000 # String used as indentation unit. This is usually " ...
1
vote
1answer
211 views

Ripgrep default search

I have been using projectile-ripgrep for a few months and I'm pretty happy with it. A few days ago I was testing some of is options and the default search for ripgrep (what I see in the minibuffer) ...
1
vote
1answer
152 views

Confused regarding .dir-locals.el and projectile

I have a python project, it has tests and I can execute them from the command line. I just read about .dir-locals.el in the projectile documentation and I want to execute tests from inside emacs using ...
1
vote
0answers
70 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-...
1
vote
2answers
782 views

Projectile switch between opened projects

I often have to work with multiple related projects and switching between them can become hard. I use counsel-projectile and it really makes everything easier. To be clear, I am not talking about ...
1
vote
0answers
44 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 ...
0
votes
1answer
181 views

Auto insert include guard in cpp header when inside projectile project

I am currently learning C++ and I came across include guards to avoid double inclusion. Now I would like to use the google's style convention like this : // project/src/app.hpp #ifndef ...
0
votes
0answers
63 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 ...
1
vote
1answer
260 views

Can I make projectile open a default file when I switch to a project?

I'm using helm-projectile in spacemacs. SPCpp runs helm-projectile-switch-project, which gives me a helm completion buffer for projectile projects. When I choose a project and hit enter, I then get a ...
0
votes
0answers
44 views

How to change color of the found character string on `projectile-find-file`? [duplicate]

I am using projectile-find-file to open files. The color of the found part of the string ex: (bash) in the mini-buffer is unreadable on my terminal. Is it possible to change its color? Example ...
0
votes
1answer
163 views

Find file in a project in a mono-repo like `projectile-find-file`

My code base consists of a "mono-repo". A single large repository containing a flat structure of projects. Top Project1 Project2 Project3 Library Library I've been using ...
0
votes
0answers
91 views

How to launch projectile mode with default configuration

I looked at the quickstart here: https://github.com/bbatsov/projectile#installation https://projectile.readthedocs.io/en/latest/usage/ And have this in my init.el: (require 'projectile) (define-key ...
3
votes
2answers
189 views

How can I run imenu in all project files?

Is there any package which will allow to run the imenu in all project files of a current mode? More specifically I have a Go project defined by projectile and I would like to search for a symbol in ...
5
votes
1answer
413 views

How to mark a directory as "not a project" in projectile?

I have a big version-controlled directory hosting a lot of half-independent bodies of work. I want to consider them all as projects for projectile. So I added an empty .projectile file in each of ...
1
vote
1answer
282 views

Searching a specific project sub-directory with projectile

I recently found Projectile and I am loving it. I really like the ivy/counsel integration as well. One thing is missing though: I am working on a huge project of hundreds of files. This is stored in ...
0
votes
0answers
73 views

How to make helm-projectile-rg list files in relative to project?

Whenever I use helm-projectile-rg I see the list of files in relative to the current file: ../../../../../../project_dir/test/test1/filex.cpp "match" Is there a way to have it show files in ...
6
votes
1answer
462 views

Equivalent of helm-ag-edit with ivy

I've been trying to switch to Ivy from Helm for the past little while. One feature I miss (and because of this I keep helm installed) is the ability to run helm-ag, and then to hit C-c C-e so I can ...
1
vote
1answer
46 views

How to create a function that have the functionality of helm-projectile-switch-to-buffer but with added opened org files?

I really like helm-projectile-switch-to-buffer as it shows buffers for the specific project I am working in (i have multiple projects open at the same time). But I also rely on org files for notes and ...
5
votes
0answers
146 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 ...
0
votes
0answers
75 views

Why am I getting `max-specpdl-size` error on one markdown file when opening via projectile but not dired?

I am getting a max-specdl-size error on only one .markdown file. I have increased the size via (setq max-specpdl-size 50000) to test, and I still get the error. This does not happen on any other ....
0
votes
2answers
259 views

enable counsel-projectile by default

I want to enable counsel-projectile-mode by default. I have added (counsel-projectile-mode) to .emacs file as per project's usage guide but it doesn't work; meaning projectile still uses ido for ...
1
vote
1answer
154 views

Projectile command for debug and release

My google searches aren't turning up anything useful, but I am trying to figure out how I" can use projectile-project-compilation-cmd to be able to dynamically switch between release and debug with ...
1
vote
1answer
76 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 ...
1
vote
1answer
42 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
67 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
202 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
294 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
79 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 ...
1
vote
0answers
178 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 | >$_ |...
2
votes
0answers
164 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
2answers
346 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
179 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
209 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 ./......