Fork me on GitHub
#spacemacs
<
2021-01-31
>
Ho0man12:01:17

Hi everyone, How can I limit the SPC s p command in spacemacs to refrain from searching certain directories. In front-end projects with shadow-cljs using SPC s p causes the editor to look for matches even in minified js files causing the editor to hang. Thanks a lot in advance I am using practicalli's default spacemacs config

practicalli-johnny12:01:00

Projectile should ignore patterns in the project .gitingnore file and I think / hope the users .gotignore-global file (if added).

practicalli-johnny12:01:55

There is a projectile invalidate cache command somewhere, this should reload patterns from .gitignore. Or try revert-buffer on the file you are initiating the search command from.

practicalli-johnny12:01:36

Or add a .projectile file in the root of the project with patterns to ignore, although I think this is really just where you want patterns that are not in . gitignore or are not using git

Ho0man13:01:55

That's exactly it. Thanks a lot for your help, this was very helpful

👍 3
Ho0man14:01:05

sorry but it didn't work. I searched quite a bit and the document mentions that .projectile file is ignored by alien indexing which apparently spacemacs has switched to on develop but even after setting the indexing method to 'native the issue persists Am I doing something wrong ?