Readit News logoReadit News
spain · 11 years ago
I'd be interested in knowing how this compares to the Silver Searcher [0], I'm surprised it wasn't mentioned at all since they're similar.

[0] https://github.com/ggreer/the_silver_searcher

zellyn · 11 years ago
Pretty sure ag searches on-the-fly, whereas Hound builds an index.

Edit: Yup, from previous discussion: https://news.ycombinator.com/item?id=8957565

reledi · 11 years ago
One big difference is the UI. Silver Searcher is used on the command line whereas Hound is used in a webpage.

Edit: A command line version is also on the way.

escherize · 11 years ago
I've been using helm-projectile's helm-projectile-ag in emacs (on prelude) a lot lately. It's very nice to have live filtering while you type a query, and the ability to search for symbol at point.

https://tuhdo.github.io/helm-projectile.html

bullfightonmars · 11 years ago
rking's ag.vim provides a UI to Silver Searcher in vim, it is effectively similar to this, plus it's right in your next editor! https://github.com/rking/ag.vim

That said Hound looks like a nice tool. I'm giving it a try.

reledi · 11 years ago
I was a little confused by the title because thoughtbot has an open sourced tool also named Hound [1].

1: https://houndci.com

andrewjkerr · 11 years ago
Same here. Since they're both dealing with code I think the name confusion is a pretty big deal.
bucky · 11 years ago
This has basically replaced ack for me. I was dubious of a web -based search tool when Kelly first sent an email about it, but after trying it a couple of times, I abandoned ack. It being linkable is extra icing on the cake for me.
knodi123 · 11 years ago
I really feel the burn with simple "find globally" in my IDE... but I won't use this unless it can integrate into an IDE or advanced editor.

Is there a sublime or textmate plugin?

spdustin · 11 years ago
Yes. It's linked in the article.

https://github.com/bgreenlee/SublimeHound

derobert · 11 years ago
From the article: "…but with a command line version on the way and a Sublime Text plugin already live…"
sciurus · 11 years ago
For another example of a code search service written in Go, see the software powering http://codesearch.debian.net

https://lwn.net/Articles/627609/

https://github.com/Debian/dcs

prezjordan · 11 years ago
Looks like the config requires you to specify repo URLs (only GitHub?). Can't seem to get a private repo to work.
JimmyL · 11 years ago
If you're experimenting, use `git config --global credential.helper 'store'` to set git to store your credentials in a plain-text file. Then (if you're on GitHub), generate a personal access token (https://help.github.com/articles/creating-an-access-token-fo...), and then use that as the password - once you've entered it once, it should be stored and not prompted for again.

Please remember how insecure this is.

mikenj · 11 years ago
"file:///"-based URLs also appear to work. Clone your private repo and point Hound at your local clone.
PaulHoule · 11 years ago
I've wanted one of these for Java, that reads my POM file and searches over the dependencies of my project.
mdaniel · 11 years ago
Do you mean outside of an IDE, because as the sibling comment notes: both IntelliJ and other inferior editors do this.

If you mean from the command-line, then, yes, it likely take some use of mvn dependency:tree and javap invocations (or unzip for the deps that ship -sources.jar artifacts)

BetaCygni · 11 years ago
Eclipse does this.
stephenmm · 11 years ago
I have been using Google Code Search (https://code.google.com/p/codesearch/) and find it indispensable.
junkblocker · 11 years ago
I am maintaining a fork of it at https://github.com/junkblocker/codesearch where I've added some niceties.