-
-
Notifications
You must be signed in to change notification settings - Fork 261
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: work as a drop-in ls replacement #736
Comments
this can either be picked up by someone as I myself will wait/implement this in #640 but not in main branch |
I don't think this can be done. This is because when parsing a single character argument, it is necessary to know if the corresponding argument requires an additional parameter. According to the existing parsing logic, a command line like |
Quite true. I guess the only options are to chose one of the following:
|
This is doable, and we have what needed but as Clap is incoming I dont wanna take time to modify it, you are free to do it yourself tho. |
I've also discovered recently
|
This should probably be a separate issue, seems useful, and easy to implement, although I'm not much for using a single letter flag for this |
|
...it works the same unless you try something like The I haven't looked at the argument parsing code—is this kind of disambiguation for |
I implemented it and it works on many cases, but there are edge cases where it can be ambiguous (as mentioned in a comment above). |
@adrian-the-git Yes. It itches me too. So I made a script to wrap eza: when |
Even if it's not |
This is also a dealbreaker for me. I run Idea: compability env variable for those options? EZA_LS_COMPABILITY=1 ? |
Our plan is to introduce a flag that makes eza ls compatible, this is gonna be done after the clap migration |
A lot of specific feedback seems to get lost in this thread, if you have some feature request, make sure to create a separate issue for it, I just see "work as drop-in replacement" in the issue tracker, but there are suggestions here like a short flag for sorting by mtime that likely have a harder time being picked up by contributors from not having their own issue |
speaking of that if anyone wanna help review it as its a long standing pr we will accept the help |
I'm a yet another
|
Currently,
exa
doesn't support the-t
flag in the same way asls
, so it won't work as a drop in replacement. That is,ls -ltra
works, butexa -ltra
won't work.An issue existed at the exa repository for this: ogham/exa#519
I also wrote a patch fixing this: ogham/exa@fa76a33
I tried cherry-picking this, but some conflicts seem non-trivial. I'd appreciate hearing some feedback on the patch first, and if it looks good, I'll like to incorporate it into eza. Notably:
-t
is specified with arguments, it behaves much likeexa -t X
.-t
is specified without arguments, it behaves likels
.The text was updated successfully, but these errors were encountered: