feat: Option to warn if there are hidden files
(I opened this feature request on exa around a year ago, but it didn't go anywhere, so maybe it will here.)
Would it be possible to add an option to warn if there are hidden files without displaying them? I've many times been in a situation where I'm looking for a file, but I can't find it because I forget to specify --all. It would be great to have an option (likely most used in an alias) to display a warning like "...5 hidden files", to be able to easily tell when there are hidden files without taking up the space of actually displaying all of them when they're irrelevant. If use with --git-ignore, this warning could also report that there are ignored files, and how many, something like:
I've got a fair amount of Rust experience, I'd probably be willing to work on a PR for this.
I'd be happy to see a PR for this if you wanna work on it, looks very useful
@cafkafk Would you mind pointing me towards where in the code the files are actually filtered? I found fs::dir::Files::next_visible_file(), and I'm counting there when files get skipped, but it looks like there's a lot that happens in fs::filter, and I'd also need to count filtered files there.
Here's what I've got so far: https://github.com/dacid44/eza/commit/3e7a54c2366dae2b5a7de51ce71274c6f834cd16 I'm making a type with two atomic counters, and a way to render the warning line. I'd like to print it after each directory listed, if the option is enabled, and if either count is above 0.
Never mind, I did find the right spot, the issue was somewhere else.
It's been a few months-has the new testing been merged by now, and if so, what should I do to catch this PR up and get it finished?
It's been a few months-has the new testing been merged by now, and if so, what should I do to catch this PR up and get it finished?
I'll send a review in a moment on #599