mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
drop in nak for search
This commit is contained in:
@@ -13,7 +13,8 @@
|
||||
"coffee-cache": "0.1.0",
|
||||
"pegjs": "0.7.0",
|
||||
"async": "0.2.6",
|
||||
"plist": "git://github.com/nathansobo/node-plist.git"
|
||||
"plist": "git://github.com/nathansobo/node-plist.git",
|
||||
"nak": "0.2.4"
|
||||
},
|
||||
|
||||
"private": true,
|
||||
|
||||
@@ -192,8 +192,9 @@ class Project
|
||||
readPath(line) if state is 'readingPath'
|
||||
readLine(line) if state is 'readingLines'
|
||||
|
||||
command = require.resolve('ag')
|
||||
args = ['--ackmate', regex.source, @getPath()]
|
||||
command = require.resolve 'nak'
|
||||
args = ['--ackmate', "#{regex.source}", @getPath()]
|
||||
args.unshift("--addVCSIgnores") if config.get('nak.addVCSIgnores')
|
||||
new BufferedProcess({command, args, stdout, exit})
|
||||
deferred
|
||||
|
||||
|
||||
Reference in New Issue
Block a user