From 4575137359d72c2af39089cf20265b7ddd4ec433 Mon Sep 17 00:00:00 2001 From: Clayton Carter Date: Mon, 2 May 2022 21:54:50 -0400 Subject: [PATCH] feat: add `indexIgnoredPaths` setting --- packages/fuzzy-finder/lib/path-loader.js | 2 ++ packages/fuzzy-finder/package.json | 5 +++++ 2 files changed, 7 insertions(+) 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,