Skip to content

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

Closed
niT-Tin wants to merge 4 commits into
ogham:masterfrom
niT-Tin:dev
Closed

feat: Add a time style with better human readability#1202
niT-Tin wants to merge 4 commits into
ogham:masterfrom
niT-Tin:dev

Conversation

@niT-Tin

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

Copy link
Copy Markdown

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

Comment thread Cargo.toml Outdated
terminal_size = "0.1.16"
unicode-width = "0.1"
zoneinfo_compiled = "0.5.1"
chrono = "0.4.26"

Copy link
Copy Markdown

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.

Comment thread src/options/view.rs Outdated
else if &word == "full-iso" {
Ok(Self::FullISO)
}
else if &word == "hu" {

Copy link
Copy Markdown

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

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

@planet36 planet36 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice work!

@ariasuni

ariasuni commented Sep 7, 2023

Copy link
Copy Markdown
Collaborator

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.

3 participants