Fork me on GitHub
#spacemacs
<
2019-01-28
>
drewverlee18:01:08

anyone have any luck ignoring files on a per project basis? Here is what i tired: 1. create a .proejctile file in the base of my project 2. add the line -/*.js to it 3. stage and commit it run command projectile-replace 4. i still see .js files

ag18:01:50

.gitignore should do, no?

ag18:01:44

also peeking into elisp code it seems it tries to use ag, ack and then git-grep (in that order). So maybe .agignore helps?

drewverlee19:01:15

i can't gitignore these files because there important to the project. Maybe i can just ignore while replacing? is there an option for "no to everything in this file"

ag19:01:31

tbh. I am not following what you’ve just typed.

ag19:01:35

for global replace what I usually do is search for something, then in search results I’d press C-c C-e and then use iEdit or multiple cursors, then commit my changes

mccraigmccraig20:01:08

I got it to work for my case (mostly projectile-ag) a while back @U0DJ4T5U1... i had to make some changes to spacemacs menus iirc... will look up details when I'm back behind a keyboard

drewverlee20:01:23

mostly i wanted search and replace to work. most other cases i can ignore the other files

mccraigmccraig20:01:23

i was just after search, but there may be a similar solution for search/replace - i ended up replacing the default <sap> binding, 'cos the default binding was ignoring the projectile exclusions - this went in dotspacemacs/userconfig : https://gist.github.com/mccraigmccraig/81c2e94d50824306b3c0245c99a26e1e