diff --git a/packages/fuzzy-finder/lib/path-loader.js b/packages/fuzzy-finder/lib/path-loader.js index 3f4adb8562..70d3e1ac97 100644 --- a/packages/fuzzy-finder/lib/path-loader.js +++ b/packages/fuzzy-finder/lib/path-loader.js @@ -11,6 +11,7 @@ module.exports = { const ignoreVcsIgnores = atom.config.get('core.excludeVcsIgnoredPaths') const projectPaths = atom.project.getPaths().map((path) => fs.realpathSync(path)) const useRipGrep = atom.config.get('fuzzy-finder.useRipGrep') + const indexIgnoredPaths = atom.config.get('fuzzy-finder.indexIgnoredPaths') const task = Task.once( taskPath, @@ -20,6 +21,7 @@ module.exports = { ignoreVcsIgnores, ignoredNames, useRipGrep, + indexIgnoredPaths }, () => callback(results) ) diff --git a/packages/fuzzy-finder/package.json b/packages/fuzzy-finder/package.json index 8843083b95..1862807c3c 100644 --- a/packages/fuzzy-finder/package.json +++ b/packages/fuzzy-finder/package.json @@ -59,6 +59,11 @@ "default": true, "description": "Use the substantially faster `ripgrep` crawler." }, + "indexIgnoredPaths": { + "type": "boolean", + "default": false, + "description": "Index VCS ignored paths so that they can be searched when the typed query begins with `!`. (Has no effect if not using the `ripgrep` crawler.)" + }, "prefillFromSelection": { "type": "boolean", "default": false,