hound icon indicating copy to clipboard operation
hound copied to clipboard

Add a "tree" view

Open coxley opened this issue 8 years ago • 5 comments

Hound is super simple to deploy, but hundreds of repos to search through it gets quite hard to parse. I suggest having a view to "minimize" the repo names where matches were found and let the user expand them?

coxley avatar Mar 29 '16 21:03 coxley

If I understand you, that sounds like a super helpful feature to have. The results would start off as just the book icons with the repo name next to it (maybe add some stats like how many matches were in the repo) and then clicking on the book icon would cause results to be expanded. The icon could be clicked on further times to toggle back and forth and would probably display a different looking book (open or closed).

I think for when files have a lot of matches it might be nice if the lines within the file where the matches were started hidden and then could be toggled. There might also be some expand and collapse all buttons.

dcampbell24 avatar Apr 13 '16 00:04 dcampbell24

That about sums up my thoughts. :)

coxley avatar Apr 14 '16 06:04 coxley

#149

danielcb avatar Apr 25 '16 07:04 danielcb

I'm interested in this feature too; we also have 100+ repositories at our org.

Has anyone done an implementation?

mikepurvis avatar Jun 07 '16 03:06 mikepurvis

I have found http <server>/api/v1/search q=<query> repos='*' -f | jq '.Results | keys' using httpie and jq (should work fine with curl as well) gets the name of the repos.

e.g.

➜  designate git:(master) http http://codesearch.openstack.org/api/v1/search q=ujson repos='*' files="requirements\.txt" -f | jq '.Results | keys' 
[
  "kiloeyes",
  "monasca-common",
  "requirements",
  "rpm-packaging"
]

grahamhayes avatar Oct 19 '17 13:10 grahamhayes