spacemacs

Spacemacs docs: http://develop.spacemacs.org/doc/DOCUMENTATION.html http://develop.spacemacs.org/layers/+lang/clojure/README.html https://practicalli.github.io/spacemacs/
murtaza52 2020-05-17T09:57:14.098300Z

how do I get my Helm Projectile Grep SPC / to ignore all .js files. I have included the *.js entry in my gitignore, but the global search above still pulls it up.

practicalli-john 2020-05-17T12:29:09.100Z

@murtaza52 I use the globbing option to ignore a file extension in search -g!*.js https://practicalli.github.io/spacemacs/spacemacs-basics/working-with-projects/searching-projects.html

practicalli-john 2020-05-17T12:29:39.101Z

This works if you have ripgrep or silver-searcher binaries installed

murtaza52 2020-05-17T13:46:42.102300Z

@jr0cket I installed ripgrepnow how do I ensure that it is being used for searching ?

murtaza52 2020-05-17T13:48:12.102900Z

also is there no way to specify that these files should alwways be excluded in any searching ?

murtaza52 2020-05-17T13:48:57.103800Z

Even when I search for files SPC p fI dont want generated .js files to show up, how do I do that ?

practicalli-john 2020-05-17T15:05:43.106700Z

@murtaza52 if ripgrep is found on the executable path, then it is used. There is a setting in .spacemacs to define a custom order, but by default it will look for ripgrep first.

practicalli-john 2020-05-17T15:08:42.109700Z

You can add a .projectile file in the root of a project and add patterns. However, I thought projectile excluded patterns from .gitignore too.

2020-05-24T14:06:22.197400Z

Thats the plan, yet if you recall, i had the same issue. There are cases where it doesn't work, maybe due to what underpins the SPC / command or the project structure. I guess i should get better about making bug reports, but its hard to switch context off your job to make a good report.

practicalli-john 2020-05-24T15:28:12.205300Z

I am aware projectile doesnt load in changed files when you already have a project open, so I assume a change .gitignore may not be used until after a new file is open from that project. This is certainly the case for .dir-locals.el files, so imagine its the same for .gitignore .

practicalli-john 2020-05-24T15:28:35.205500Z

Of course there could be a bug in projectile too..

practicalli-john 2020-05-17T15:17:00.111900Z

Try reload one of the project files after changing the .gitignore file to get projectile to re-read the .gitignore file

aisamu 2020-05-17T15:56:25.112700Z

But I'm not sure if that's projectile's fault or the underlying tool (`rg` here)

practicalli-john 2020-05-17T16:07:35.113500Z

According to ripgrep docs it does ignore the patterns in .gitignore along with other things https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md#automatic-filtering