exa icon indicating copy to clipboard operation
exa copied to clipboard

Add a `--footer` flag

Open Delapouite opened this issue 1 year ago • 2 comments

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

Delapouite avatar Feb 16 '23 07:02 Delapouite

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.

eggbean avatar Feb 16 '23 18:02 eggbean

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?

daviessm avatar Feb 17 '23 18:02 daviessm