Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a --footer flag #1159

Open
Delapouite opened this issue Feb 16, 2023 · 2 comments
Open

Add a --footer flag #1159

Delapouite opened this issue Feb 16, 2023 · 2 comments

Comments

@Delapouite
Copy link

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
Copy link

eggbean commented Feb 16, 2023

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
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants