parent
1e9841055e
commit
a7ff8fac4d
|
@ -99,7 +99,7 @@ class DirOpen(Method):
|
||||||
class DirGrep(Method):
|
class DirGrep(Method):
|
||||||
args = [Argument('pattern', datatype="str", prompt="Pattern: ")]
|
args = [Argument('pattern', datatype="str", prompt="Pattern: ")]
|
||||||
def _execute(self, w, **vargs):
|
def _execute(self, w, **vargs):
|
||||||
cmd = 'grep -rEl "%s" %r' % (vargs['pattern'], w.buffer.path)
|
cmd = 'grep -rEl -- "%s" %r' % (vargs['pattern'], w.buffer.path)
|
||||||
(status, output) = commands.getstatusoutput(cmd)
|
(status, output) = commands.getstatusoutput(cmd)
|
||||||
|
|
||||||
paths = []
|
paths = []
|
||||||
|
|
Loading…
Reference in New Issue