GithubHelp home page GithubHelp logo

Comments (10)

adrian-the-git avatar adrian-the-git commented on May 30, 2024 2

eza -F works the same

...it works the same unless you try something like -Fl.

The -t flag is my personal dealbreaking itch with this tool (I run ls -lrt hundreds zillions of times per day). I don't want to develop muscle memory for -lsnew and find myself fighting with vanilla linux.

I haven't looked at the argument parsing code—is this kind of disambiguation for ls compatibility likely to be complicated to implement? I think we all have our repetitive behaviors with ls. If this kind of fix is unlikely to work with eza, I might go back to my ancient-but-functional color ls drop-in replacement.

from eza.

moonfruit avatar moonfruit commented on May 30, 2024 1
  • When -t is specified with arguments, it behaves much like exa -t X.

  • When -t is specified without arguments, it behaves like ls.

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 eza -tmodified is valid. If, as suggested by @WhyNotHugo, eza can't tell whether the ra after the letter t in eza -ltra is another two arguments or the parameters belonging to t. This is ambiguity.

from eza.

MartinFillon avatar MartinFillon commented on May 30, 2024 1

I've also discovered recently ls -p which suffixes folders with a /, making them more distinct, and that eza lacks:

eza -F works the same as it classifies which type of file it is, it then adds the / for directories and * for executables and '@' for links

from eza.

MartinFillon avatar MartinFillon commented on May 30, 2024

this can either be picked up by someone as I myself will wait/implement this in #640 but not in main branch

from eza.

WhyNotHugo avatar WhyNotHugo commented on May 30, 2024

Quite true. I guess the only options are to chose one of the following:

  • Remain compatible with exa.
  • Remain compatible with ls.

from eza.

MartinFillon avatar MartinFillon commented on May 30, 2024

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.

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.

from eza.

teto avatar teto commented on May 30, 2024

I've also discovered recently ls -p which suffixes folders with a /, making them more distinct, and that eza lacks:

➜ eza -p                    
eza: Unknown argument -p
home on  boot-fixes via ❄️  IMPURE (dotfiles-shell-env) 
❌3 ❯ eza --version  
eza - A modern, maintained replacement for ls
v0.18.0 [+git]
https://github.com/eza-community/eza

from eza.

cafkafk avatar cafkafk commented on May 30, 2024

I've also discovered recently ls -p which suffixes folders with a /, making them more distinct, and that eza lacks:

➜ eza -p                    
eza: Unknown argument -p
home on  boot-fixes via ❄️  IMPURE (dotfiles-shell-env) 
❌3 ❯ eza --version  
eza - A modern, maintained replacement for ls
v0.18.0 [+git]
https://github.com/eza-community/eza

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

from eza.

WhyNotHugo avatar WhyNotHugo commented on May 30, 2024

I haven't looked at the argument parsing code—is this kind of disambiguation for ls compatibility likely to be complicated to implement?

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).

from eza.

moonfruit avatar moonfruit commented on May 30, 2024

The -t flag is my personal dealbreaking itch with this tool (I run ls -lrt hundreds zillions of times per day). I don't want to develop muscle memory for -lsnew and find myself fighting with vanilla linux.

@adrian-the-git Yes. It itches me too. So I made a script to wrap eza: when -lrt appears the script simply replaces it with -lsnew, then sends the argument to eza.

from eza.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.