dkprice / vim-easygrep

Fast and Easy Find and Replace Across Multiple Files
The Unlicense
325 stars 47 forks source link

This doesn't seem to grep recursively through directories #19

Closed npearson72 closed 9 years ago

npearson72 commented 9 years ago

Am I doing something wrong?

dkprice commented 9 years ago

Did you activate recursive mode? See 'help EasyGrepRecursive' or 'GrepOptions'

bimlas commented 9 years ago

Same thing here: running on Windows with gvim-7.4.712 (the binary can be downloaded from here). I tested on a ruby file - it works if all file is searched:

"q: quit
"r: recursive mode (on)
"d: include all buffer directories (on)
"i: ignore case (on)
"h: hidden files included (on)
"e: echo files that would be searched
"x: set files to exclude
"c: change grep command (vimgrep)
"w: window to use (quickfix)
"m: replace window mode (autowriteall)
"o: open window on match (on)
"g: separate multiple matches (on)
"p: jump to match (on)
"!: invert the meaning of whole word (off)
"*: show file associations list (off)

"a: activate 'All' mode
"b: activate 'Buffers' mode
"t: activate 'TrackExt' mode
"u: activate 'User' mode

"v: echo the grep command
"|: echo options that are set
"?: show fewer options

"Grep Targets: *
"Inclusions: none
"Exclusions: .svn,.git

>All: *
 Buffers: *Buffers*
 TrackExt: *.rb
 User: 

Search Mode: All (Recursive)
Search Directory: . --> c:\\users\\laci\\x
VIM command: vimgrep /<pattern>/g ** .*

But fails if the target is set to trackext:

"q: quit
"r: recursive mode (on)
"d: include all buffer directories (on)
"i: ignore case (on)
"h: hidden files included (on)
"e: echo files that would be searched
"x: set files to exclude
"c: change grep command (vimgrep)
"w: window to use (quickfix)
"m: replace window mode (autowriteall)
"o: open window on match (on)
"g: separate multiple matches (on)
"p: jump to match (on)
"!: invert the meaning of whole word (off)
"*: show file associations list (off)

"a: activate 'All' mode
"b: activate 'Buffers' mode
"t: activate 'TrackExt' mode
"u: activate 'User' mode

"v: echo the grep command
"|: echo options that are set
"?: show fewer options

"Grep Targets: *.rb *.rbw *.gem *.gemspec [rR]akefile *.erb *.rhtml
"Inclusions: none
"Exclusions: .svn,.git

 All: *
 Buffers: *Buffers*
>TrackExt: *.rb
 User: 

Search Mode: TrackExt (Recursive)
Search Directory: . --> c:\\users\\laci\\x
VIM command: vimgrep /<pattern>/g *.rb .*.rb *.rbw .*.rbw *.gem .*.gem *.gemspec .*.gemspec [rR]akefile .[rR]akefile *.erb .*.erb *.rhtml .*.rhtml

The ** in the VIM command does not appear.

EDIT Tried out on Linux too - doesn't seems to work...

dkprice commented 9 years ago

I just submitted 2612388e11bce45ece2484bedfaa8ceabd13786d, can you see if that fixes the problem for you?

bimlas commented 9 years ago

It solved the issue. Thanks!

dkprice commented 9 years ago

Glad to hear it