-
-
Notifications
You must be signed in to change notification settings - Fork 660
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
feat: Add a time style with better human readability #1202
Conversation
Cargo.toml
Outdated
@@ -32,6 +32,8 @@ term_grid = "0.2.0" | |||
terminal_size = "0.1.16" | |||
unicode-width = "0.1" | |||
zoneinfo_compiled = "0.5.1" | |||
chrono = "0.4.26" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the dependencies list should be sorted alphabetically.
src/options/view.rs
Outdated
@@ -266,6 +266,9 @@ impl TimeFormat { | |||
else if &word == "full-iso" { | |||
Ok(Self::FullISO) | |||
} | |||
else if &word == "hu" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why hu
instead of human
or relative
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes! I also thought that after seeing nushell, exa should have come up with the idea of this PR, which was a temporary idea, so I didn't think much about it. However, now It's better to use "human" or "relative" instead.
This would be a good feature. The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
Closing this since exa is unmaintained (see #1243), and this has been merged in the active fork eza. Thanks! |
Because when using the built-in command ls of nushell, I found that it has a more readable date display, so I hope that Exa can also support it
The following is the result of running ls in a nushell
Here are the results of running exa