vim-agriculture icon indicating copy to clipboard operation
vim-agriculture copied to clipboard

Respect .gitignore

Open alexnix opened this issue 4 years ago • 2 comments

:Ag will search in files inside node_modules too, even tho node_modules is ignored in my .gitignore With fzf :GFiles, for example I don`t have this issue, also :Rg and CtrlP work fine

alexnix avatar Mar 16 '21 07:03 alexnix

Weird, this isn't happening for me. I have to explicitly pass -U to :AgRaw -U 'some search' to get ignored node_modules results here.

PS. The :Ag and :Rg commands are fzf.vim implementations, defined outside of agriculture here; I assume you mean the :AgRaw and :RgRaw commands?

jesseleite avatar Mar 16 '21 16:03 jesseleite

Thanks for your answer. This happens for both :Ag and :AgRaw actually. In the bellow image you can see my .gitignore in the root directory (where I started nvim). And you can see in the search results (generated with :AgRaw Object, as an example), finding stuff in nested node_modules folders, that should have been ignored by **/node_modules line.

image

alexnix avatar Mar 17 '21 16:03 alexnix