drop in nak for search

This commit is contained in:
Garen Torikian 2013-03-26 15:02:48 -07:00
parent 75fbab94b1
commit 02873f5116
2 changed files with 5 additions and 3 deletions

View File

@ -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,

View File

@ -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