find-in-files icon indicating copy to clipboard operation
find-in-files copied to clipboard

Ignore pattern

Open brettz9 opened this issue 6 years ago • 4 comments

An ignore pattern would be extremely handy...

brettz9 avatar Jul 02 '18 01:07 brettz9

Ignore pattern for folders too. Pretty handy to exclude node_modules e.g.

ADjenkov avatar Mar 28 '19 11:03 ADjenkov

An ignore pattern would be extremely handy...

You can use regex search for ignoring pattern

sankalpkataria avatar Feb 16 '20 07:02 sankalpkataria

Ignore pattern for folders too. Pretty handy to exclude node_modules e.g.

You can use https://www.npmjs.com/package/search-in-file and provide ignoreDir option to fileSearch for ignoring folders and files. It also has fileMask option to search in files with provided extension.

sankalpkataria avatar Feb 16 '20 07:02 sankalpkataria

It is not always easy to craft a regex to do so, which is why I mentioned it being "handy".

Re: the link to search-in-file and info, thanks!

brettz9 avatar Feb 16 '20 14:02 brettz9