Add pcre2 ripgrep option
MODIFY
lib/project/results-model.js
lib/project/results-model.js
@@ -217,6 +217,7 @@ module.exports = class ResultsModel {
const startTime = Date.now()
const useRipgrep = atom.config.get('find-and-replace.useRipgrep')
+ const enablePCRE2 = atom.config.get('find-and-replace.enablePCRE2')
this.inProgressSearchPromise = atom.workspace.scan(
this.regex,
@@ -225,6 +226,7 @@ module.exports = class ResultsModel {
onPathsSearched,
leadingContextLineCount,
ripgrep: useRipgrep,
+ PCRE2: enablePCRE2,
trailingContextLineCount
},
(result, error) => {

MODIFY
package.json
package.json
"title": "Use ripgrep",
"description": "Use the experimental `ripgrep` search crawler. This will make searches substantially faster on large projects."
},
+ "enablePCRE2": {
+ "type": "boolean",
+ "default": false,
+ "title": "Enable PCRE2 regex engine",
+ "description": "Enable PCRE2 regex engine (applies only to `ripgrep` search). This will enable additional regex features such as lookbehind, but may make searches slower."
+ },
"autocompleteSearches": {
"type": "boolean",
"default": false,

Add pcre2 ripgrep option