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

default -t to modified -r to be backward compatible with ls #980

Open
p1r473 opened this issue May 9, 2024 · 2 comments
Open

default -t to modified -r to be backward compatible with ls #980

p1r473 opened this issue May 9, 2024 · 2 comments

Comments

@p1r473
Copy link

p1r473 commented May 9, 2024

Hi,
Is there any way I can change the default behaviour of eza -t to eza -t modified -r to support backwards-compatibility with ls commands
I was going over some old scripts which stopped working and I was digging into why
It broke when I switched from ls to eza, the reason being is that ls -t defaulted to modified -r, whereas eza defaults to error

eza: Flag -t needs a value (choices: modified, changed, accessed, created)
To sort newest files last, try "--sort newest", or just "-snew"  
@p1r473 p1r473 changed the title feat: default -t to modified How to default -t to modified -r May 9, 2024
@cosmoswafer
Copy link

I believe the -t flag is used to select which field to display rather than for sorting. Additionally, I agree that it should maintain backward compatibility. I really hope that the argument design can be revised accordingly.

@p1r473 p1r473 changed the title How to default -t to modified -r default -t to modified -r to be backward compatible with ls Jun 8, 2024
@ccoVeille
Copy link

I have the same issue. I often have to switch back to ls because of that

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