ogham / exa

A modern replacement for ‘ls’.
https://the.exa.website/
MIT License
23.51k stars 660 forks source link

Add a `--footer` flag #1159

Open Delapouite opened 1 year ago

Delapouite commented 1 year ago

Hello

exa currently provides a --header flags providing the names of the column. A --footer flag would be greatly appreciated to show information like : number of entries in the list, sum of the sizes…

Thanks

eggbean commented 1 year ago

I don't think this is a good idea when there are other tools that can do this. Exa is an ls replacement and it already does more than ls, but those are useful enhancements but already diverging from the Unix tool philosophy. For something used possibly over a hundred times a day, speed should not be sacrificed for anything.

I don't use exa --header, so exa -l | wc -l gives the correct number of files in the directory (unlike ls), which I think is pretty cool.

daviessm commented 1 year ago

I actually quite like this idea, it's similar to how dir works in Windows. Exa is already finding each file size so adding them together and counting all the files listed would have basically zero speed penalty.

@Delapouite what information exactly do you think would be useful in a footer?