Re: [racket-dev] full tree text search

2010-12-09 Thread Jakub Piotr Cłapa

On 09.12.10 07:19, Jon Rafkind wrote:

On 12/08/2010 10:12 PM, Eli Barzilay wrote:

Is this different from a recursive grep?

(See also `git grep' -- and there's a web interface for that,
http://git.racket-lang.org//plt?a=searchh=HEADst=greps=foo )



Oh I had no idea git grep existed. Well that looks good enough for now.

(BTW, recursive grep on the command line is not so trivial..
$ find . -name *.rkt | xargs grep foo
)


You may also try ack:
http://betterthangrep.com/

It automaticaly does recursive search and ommits repository directories 
and other useless files.


It needs a config file entry for Racket though (.ackrc):
--type-set
racket=.rkt,.scrbl,.ss,.scm

Usage:
ack foo

--
regards,
Jakub Piotr Cłapa
_
 For list-related administrative tasks:
 http://lists.racket-lang.org/listinfo/dev

Re: [racket-dev] full tree text search

2010-12-08 Thread Matthias Felleisen

So how do you use it? I entered 

 code: 

and I got a huge stack trace. 


On Dec 8, 2010, at 8:26 PM, Jon Rafkind wrote:

 I whipped up a webservice that provides full text search on the racket
 tree. Its written in java using lucene+jetty. It doesn't have a lot of
 bells and whistles right now but if people find it useful I can add
 things to it.
 
 ​http://crystalis.cs.utah.edu:8080/search/
 
 I'll try to leave the server up most of the time for a few days. If its
 down and you want to try the server just let me know.
 
 --
 Why not use google search? Well its nice to have a little more control
 over how the results are shown. Sites like http://koders.com show a
 little bit of whats possible.
 
 Also its easy to set up the text search on your local box. Rebuilding a
 full index takes less than 2 minutes.
 _
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev

_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev

Re: [racket-dev] full tree text search

2010-12-08 Thread Eli Barzilay
Is this different from a recursive grep?

(See also `git grep' -- and there's a web interface for that,
http://git.racket-lang.org//plt?a=searchh=HEADst=greps=foo )


Four hours ago, Jon Rafkind wrote:
 I whipped up a webservice that provides full text search on the
 racket tree. Its written in java using lucene+jetty. It doesn't have
 a lot of bells and whistles right now but if people find it useful I
 can add things to it.
 
 ​http://crystalis.cs.utah.edu:8080/search/
 
 I'll try to leave the server up most of the time for a few days. If
 its down and you want to try the server just let me know.
 
 --
 Why not use google search? Well its nice to have a little more control
 over how the results are shown. Sites like http://koders.com show a
 little bit of whats possible.
 
 Also its easy to set up the text search on your local box. Rebuilding a
 full index takes less than 2 minutes.

-- 
  ((lambda (x) (x x)) (lambda (x) (x x)))  Eli Barzilay:
http://barzilay.org/   Maze is Life!
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev

Re: [racket-dev] full tree text search

2010-12-08 Thread Jon Rafkind
On 12/08/2010 10:12 PM, Eli Barzilay wrote:
 Is this different from a recursive grep?

 (See also `git grep' -- and there's a web interface for that,
 http://git.racket-lang.org//plt?a=searchh=HEADst=greps=foo )


Oh I had no idea git grep existed. Well that looks good enough for now.

(BTW, recursive grep on the command line is not so trivial..
$ find . -name *.rkt | xargs grep foo
)
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev