duc icon indicating copy to clipboard operation
duc copied to clipboard

Search feature on duc cgi interface

Open robina80 opened this issue 3 years ago • 1 comments

Hi all,

Is it possible to have a search feature on duc cgi Web interface

I kmow it draws a pie chart and on the right pane you can drill down to all the file and dirs

It would just be nice as it's already indexed all the files and dirs, there would be a search box, where you can search for stuff

Thanks, Rob

robina80 avatar Jan 25 '22 23:01 robina80

robina80> Is it possible to have a search feature on duc cgi Web interface

It's an interesting idea.

robina80> I kmow it draws a pie chart and on the right pane you can robina80> drill down to all the file and dirs

Nope, just directories. duc doesn't keep any per-file stats really. It would be too big otherwise.

robina80> It would just be nice as it's already indexed all the files robina80> and dirs, there would be a search box, where you can search robina80> for stuff

One option would be to just search using the text interface:

duc ls -R --ascii --full-path -d /path/to/db /root/of/db | grep

To try and find what you're looking for. Adding this into the cgi interface shouldn't be terrible, it's just a matter of time.

If you want to try and send patches, that would be awesome!

John

l8gravely avatar Jan 28 '22 19:01 l8gravely