38 votes

How to clear cache of projectile file in spacemacs?

Type M-x projectile-invalidate-cache and you'll see the command with the bindings listed next to it. For me the bindings said M-m p I which was correct, and should be the default I suspect for holy ...
Jimmy Hoffa's user avatar
13 votes
Accepted

How can the list of projects used by Projectile be manually updated?

You can add a single project to Projectile's runtime list of known projects (projectile-known-projects) using the command projectile-add-known-project, which interactively prompts you for the root ...
Basil's user avatar
  • 12.3k
11 votes
Accepted

How to use .dir-locals.el with Projectile?

.dir-locals.el does not care about the meaning of the variables that it sets, nor does it assume their values are lists (they do not have to be.) So it does not perform any merge or other processing. ...
Yuri Steinschreiber's user avatar
9 votes

How to exclude files from Projectile?

Another solution would be to use ag(the_silver_searcher) or rg (ripgrep) to generate project files. Here's how you can do it with rg: (setq projectile-enable-caching t) ;;; Default rg arguments ;; ...
Chakravarthy Raghunandan's user avatar
9 votes
Accepted

Show counsel-ag results in separate buffer?

Try C-c C-o (ivy-occur) in the minibuffer.
Erik Hetzner's user avatar
9 votes
Accepted

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

Found it. The setting is (setq helm-ag-insert-at-point 'symbol) Reference: https://github.com/syl20bnr/spacemacs/issues/1848#issuecomment-108973505
user10375's user avatar
  • 245
8 votes

Open helm search result in a new window?

C-z will bring up a new buffer with actions available to helm, and I see the following: [f1] Open file [f2] Open file other window [f3] Save results in buffer [f4] Edit search results So you want C-...
Mitchell Tracy's user avatar
8 votes
Accepted

helm-projectile with elscreen

Okay, let me share a bit of the process of arriving at the solution to Question #1 (which should also resolve #2). I'm going to assume you know Emacs key notation and at least a little about Elisp. ...
PythonNut's user avatar
  • 10.3k
8 votes
Accepted

How to set Projectile project name as frame title

The following code works for me. (setq frame-title-format '("" "%b" (:eval (let ((project-name (projectile-project-name))) (unless (string= "-" project-name) ...
takaxp's user avatar
  • 106
7 votes

Get file name relative to projectile root

I think the reason your code is not working as hoped for is because you are using the buffer-local variable projectile-project-root instead of the eponymous function. C-hvprojectile-project-rootRET ...
Basil's user avatar
  • 12.3k
6 votes
Accepted

Global Modes not consistent?

Your main question isn't really about global modes at all. global-linum-mode is (auto) loaded in Emacs by default, and so is available to all Emacs users at all times. projectile-global-mode is in a ...
phils's user avatar
  • 50.4k
6 votes
Accepted

Projectile and magit branch checkout

I have no idea how to check which magit-xyz command is triggered when using b b in magit-status. Use b ? b in magit-status. This tells you it runs magit-checkout. And even if I knew: How would I ...
npostavs's user avatar
  • 9,143
5 votes

how do I write a projectile-switch-action that changes the current working directory to the chosen project's root dir?

The default action is projectile-find-file. Change it to projectile-dired, and whenever you switch project, you get into a dired buffer of the root of that project: (setq projectile-switch-project-...
Tu Do's user avatar
  • 6,802
5 votes
Accepted

Projectile indexing won't work on Windows

This question does not seem to be about Projectile or Helm, but more generally about using grep/find with Emacs on Windows. Have you tried any of the built-in Emacs commands like rgrep, find-grep-...
glucas's user avatar
  • 20.5k
5 votes
Accepted

How can I whitelist a file or directory that is in my .gitignore?

Since 2016-04-05, you can use a bang prefix to override ignored profiles, as explained in the docs. For instance, to override the .gitignore in the question for the files in the /dev folder, you could ...
Sam Estep's user avatar
  • 459
5 votes
Accepted

Regenerate ctags TAGS file without freezing Emacs for a while?

You can use https://github.com/redguardtoo/counsel-etags/blob/master/counsel-etags.el which originally called aysnc-shell-command to run shell command ctags -e -R. Or else write your own ...
chen bin's user avatar
  • 4,849
5 votes

How to exclude files from Projectile?

Check if the variable projectile-indexing-method is set to alien. If that's the case Projectile will ignore ignores/unignores/sorting provided in Projectile config: The alien indexing method ...
Navidot's user avatar
  • 762
5 votes
Accepted

Projectile - "PATH is not a project"?

Using the answer from here, they said. I think your project is indeed considered a project by projectile only if you have a .git folder in it (did you forget to git init?). I'm not seeing one in your ...
Hercislife's user avatar
4 votes

How to exclude files from Projectile?

search that respects ignored dirs/files: install ack (An alternative to grep. I install via homebrew.) put --ignore-case in your ~.ackrc file (assuming you want to ignore case) bind helm-projectile-...
haroldcarr's user avatar
4 votes
Accepted

Emacs hashtag bracket(#[]) notation

This is the printed notation of compiled emacs lisp byte-code, you can read more about it in the manual. This post will probably be more helpful with understanding what is represented in the vectors ...
Jordon Biondo's user avatar
4 votes

How to exclude files from Projectile?

A new solution with no speed compromise of projectile Since projetile-indexing-method is default set to alien, both projectile-globally-ignored-directories and projectile-globally-ignored-files will ...
oracleyue's user avatar
  • 161
4 votes

how to helm-projectile-grep for exact string?

Fuzzy matching should be switched off by default, but if you have a space character in your pattern it will turn fuzzy matching on. If your query didn't have spaces, check your emacs config and make ...
alecvn's user avatar
  • 419
4 votes
Accepted

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

It is possible to set Projectile to use Git's version of the grep command. If you have Git installed on Windows, simply applying the configuration below should suffice: (setq projectile-use-git-grep ...
Arthur Colombini Gusmão's user avatar
4 votes
Accepted

Equivalent of helm-ag-edit with ivy

Thanks to this blogpost, I found a solution. The real tool that I was looking for was wgrep which does the multi-editing heavy lifting that I was missing. Here are the steps for using the Silver ...
Ashton Wiersdorf's user avatar
4 votes
Accepted

counsel-rg how to repeat last search?

M-p will do it. Works like most list commands.
Muihlinn's user avatar
  • 2,604
3 votes

Delete trailing white space from all projectile project files

This works for me: (defun projectile-delete-trailing-white-spaces-from-project-files () "Deletes trailing spaces from all projectile project files." (interactive) (let ((project-files (...
Jack's user avatar
  • 770
3 votes

Incremental Search across Projectile project

I recommend projectile-ag for this. Works very well and is somewhat faster than isearch
tanenbring's user avatar
3 votes
Accepted

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

Here's a complete working solution with an example keybinding for spacemacs. The master branch is hard-coded in as the default branch to compare for file changes against. If you want to diff against ...
Joe's user avatar
  • 1,322
3 votes

a function to grep specified files?

The package elgrep is a quite powerful search tool. I just listed the features in an answer to a similar question. Recursive search for occurences of regexp matches in specified files is only one of ...
Tobias's user avatar
  • 33.1k
3 votes

Ignoring files in Projectile

You should add a "/" before your items, like: -/.meta -/.projectile This is the source code: (defun projectile-paths-to-ignore () "Return a list of ignored project paths." (-non-nil (--map (and ...
wen yang's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible