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
1 answer
35 views

TRAMP and `projectile-ag`, `projectile-ripgrep` cause kernel panic and complete crash of Mac OS

I am using Emacs and TRAMP on a Mac to access a remote Git repo on a Linux machine. TRAMP is using the SSH protocol. projectile-find-file and routine editing works great. Projectile finds the .git ...
user avatar
0 votes
1 answer
21 views

Option similar to `vc-directory-exclusion-list` but for files create by build tools

I'm missing an option variable similar to vc-directory-exclusion-list that holds of a list of auto-generated directory names that contain temporary files that are typically but not exlusively created ...
user avatar
  • 415
0 votes
0 answers
7 views

Force a projectile project type in a specific folder

I would like to to tell 'projectile' something along the lines: "everything in path /blah/blah/ is of project type " I do not want to rely on projectile type autodetection. I want to enforce ...
user avatar
0 votes
1 answer
37 views

Why I can't install projectile via use-package declaration?

I am watching a great YouTube series called Emacs From Scratch from System Crafters' YouTube channel. On episode #4, David Wilson talks about projectile. His screen shows: There is a pointer for the ...
user avatar
0 votes
0 answers
21 views

How to keep `projectile-find-file-hook` from taking a long time in non-project dirs?

I'm using org-mode and org-roam, with many org files in ~/Documents/org-roam (and its subdirs). Org sometimes opens lots of those files to find things. Since I have projectile-mode on globally, every ...
user avatar
  • 406
0 votes
0 answers
19 views

Hide projectile-files-errors

My Issue: I'm getting a fatal error due to a missing url for a submodule path in a project I'm working on. Desired Result: Every time I run Projectile to grep my project, I end up getting the annoying ...
user avatar
  • 176
1 vote
1 answer
28 views

How to use `projectile-multi-occur` to find a symbol at point?

I am trying to make projectile-multi-occur to work with the symbol at point. I have done that for occur already, this works: (defun occur-symbol-at-point () (interactive) (let ((sym (thing-at-...
user avatar
  • 387
0 votes
0 answers
35 views

How to call counsel-projectile-switch-project with a specified project?

The logic is that, if the default directory of a buffer has a certain prefix, then call consule-projectile-switch-project with a specific project, otherwise simply invoke counsel-projectile. My ...
user avatar
  • 687
0 votes
0 answers
97 views

Projectile session/state

Initially I scanned the user directory (~) for projects, through inexperience. Later I defined the project root (~/.doom.d/config.el): ;; Projectile settings. (setq projectile-project-search-path ...
user avatar
0 votes
0 answers
17 views

How can I disable projectile-mode in certain buffers? [duplicate]

I have (projectile-global-mode) enabled and I'd like to disable projectile-mode in certain buffers (e.g. the magit status buffer) so that their keybindings don't interfere. Is there a way to do that ...
user avatar
  • 145
0 votes
0 answers
73 views

How to configure projectile-globally-ignored-*?

With projectile configured with (add-to-list 'projectile-globally-ignored-directories "*bak") and calling projectile-grep, I expect projectile to omit directories named bak at any level. But ...
user avatar
  • 173
0 votes
0 answers
14 views

Collect all hashtags from all files within a projectile project

I have a projectile project full of markdown files with hashtags (#sample). I would like to read all the files within the project, collect all hashtags by regex, and use them with company for ...
user avatar
0 votes
0 answers
13 views

counsel-file-jump ignores higher directories

If I'm in a project and actively on a file in a subdirectory. Using counsel-file-jump doesn't let me search from root. Also typing ../ doesn't work either. Any ideas how to get it to use the ...
user avatar
1 vote
1 answer
92 views

How to list the project by the name instead of the path in projectile?

I'm new to DOOM emacs and try to get used to projectile. I found how to set the project name by using .dir-locals.el, which can be done by ((nil . ((projectile-project-name . "PROJECT-NAME"))...
user avatar
0 votes
0 answers
57 views

lsp-mode get project error report

My problem is similar to what has been described here. I also would like to know whether there is a way to show ALL errors within a (projectile) project in a flycheck error buffer. I setup Emacs with ...
user avatar
  • 111
0 votes
2 answers
437 views

Projectile: How to include files of a sub directory into the project of of it's parent directory?

Given a project directory my-project which projectile correctly identifies because it is a git project. Inside my-project there is a my-module directory. It is a git submodule and therefor projectile ...
user avatar
  • 242
1 vote
2 answers
70 views

grep contents of a set of files from find

I want to grep contents of all CMakeLists.txt files in a project (nested within a directory) so I can jump from each instance, like I would when running emacs grep function. In the examples below I'm ...
user avatar
0 votes
0 answers
62 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 ...
user avatar
  • 101
0 votes
1 answer
128 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 ...
user avatar
0 votes
1 answer
246 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 ...
user avatar
  • 115
0 votes
1 answer
49 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 ...
user avatar
  • 1,157
1 vote
3 answers
146 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 ...
user avatar
  • 1,061
0 votes
0 answers
43 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 ...
user avatar
  • 143
0 votes
1 answer
69 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.
user avatar
0 votes
1 answer
228 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 ‘...
user avatar
  • 1,084
0 votes
1 answer
317 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 ...
user avatar
0 votes
0 answers
54 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 ...
user avatar
4 votes
1 answer
689 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 ...
user avatar
2 votes
1 answer
113 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 ...
user avatar
0 votes
0 answers
85 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, ...
user avatar
  • 406
0 votes
2 answers
222 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?
user avatar
  • 103
0 votes
2 answers
235 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 " ...
user avatar
1 vote
1 answer
368 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) ...
user avatar
1 vote
1 answer
272 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 ...
user avatar
1 vote
0 answers
107 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-...
user avatar
  • 345
1 vote
3 answers
1k 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 ...
user avatar
  • 11
1 vote
0 answers
65 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 ...
user avatar
0 votes
1 answer
305 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 ...
user avatar
  • 31
0 votes
0 answers
104 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 ...
user avatar
  • 239
1 vote
1 answer
420 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 ...
user avatar
  • 281
0 votes
0 answers
52 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 ...
user avatar
  • 1,084
0 votes
1 answer
260 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 ...
user avatar
  • 537
0 votes
0 answers
185 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 ...
user avatar
3 votes
2 answers
270 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 ...
user avatar
5 votes
1 answer
775 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 ...
user avatar
  • 4,113
1 vote
1 answer
467 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 ...
user avatar
0 votes
0 answers
77 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 ...
user avatar
  • 554
6 votes
1 answer
526 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 ...
user avatar
1 vote
1 answer
50 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 ...
user avatar
  • 554
5 votes
0 answers
173 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 ...
user avatar
  • 554