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

feat: Add a time style with better human readability #1202

Closed
wants to merge 4 commits into from

Conversation

niT-Tin
Copy link

@niT-Tin niT-Tin commented Jun 11, 2023

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
nushell
Here are the results of running exa
exa

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"

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.

@@ -266,6 +266,9 @@ impl TimeFormat {
else if &word == "full-iso" {
Ok(Self::FullISO)
}
else if &word == "hu" {

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?

Copy link
Author

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.

@planet36
Copy link

This would be a good feature. The --date=relative option for lsd is the only reason I use lsd instead of exa.

Copy link

@planet36 planet36 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@ariasuni
Copy link
Collaborator

ariasuni commented Sep 7, 2023

Closing this since exa is unmaintained (see #1243), and this has been merged in the active fork eza. Thanks!

@ariasuni ariasuni closed this Sep 7, 2023
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

Successfully merging this pull request may close these issues.

None yet

3 participants