Make -t work like ls when used with no args#1102
Closed
WhyNotHugo wants to merge 1 commit into
Closed
Conversation
Author
|
This isn't in a ready-to-merge state:
However, I'm presenting this here early mostly to hear feedback on the approach. I can't decide if this is a beautiful fix, a horrible hack, or somehow, both at the same time. |
Author
|
Oh, I'm not sure what should be done when |
Currently exa can't work as a drop-in `ls` replacement due to `-t` having a very different behaviour. However `-t` currently only works when used with a value, and is invalid when used without any value. This patch changes the behaviour of exa when `-t` is passed with no value to behave the same as ls. When used with a value, it continues behaving as in previous versions of `exa`. Fixes: #519
Author
|
@ariasuni Any feedback for me here? |
This was referenced Jul 29, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently
exacan't work as a drop-inlsreplacement due to-thaving a very different behaviour.
However
-tcurrently only work when used with a value, and is invalidwhen used without any value.
This patch changes the behaviour of
-twhen used with no arguments tobehave exactly like it does for
ls. When used with a value, itcontinues behaving as in previous versions of
exa.Fixes: #519