Giter Club home page Giter Club logo

Comments (3)

tertsdiepraam avatar tertsdiepraam commented on June 21, 2024

Not sure how relevant it is to mention a completely different tool in this repo, but you might like nushell. For example, I just wrote this little command that adds a line count to every file from ls (it generates some warnings, but that's fixable):

~/code/eza> let one = ls; $one | insert "lines" {|l| wc -l $l.name | parse "{n} {name}" | get n.0 }                                                     16-05-24 14:12:13
╭────┬─────────────────────┬──────┬──────────┬──────────────┬───────╮
│  # │        name         │ type │   size   │   modified   │ lines │
├────┼─────────────────────┼──────┼──────────┼──────────────┼───────┤
│  0 │ CHANGELOG.md        │ file │ 34.5 KiB │ a month ago  │ 1618  │
│  1 │ CODE_OF_CONDUCT.md  │ file │  5.4 KiB │ 2 months ago │ 136   │
│  2 │ CONTRIBUTING.md     │ file │  7.9 KiB │ 2 months ago │ 181   │
│  3 │ Cargo.lock          │ file │ 41.1 KiB │ a month ago  │ 1613  │
│  4 │ Cargo.toml          │ file │  3.1 KiB │ a month ago  │ 144   │
...

It's fairly easy to define a new command ls-lines or something that does this.

It serves a bit of a different purpose from eza, but if you need a tool where you want ls but enriched with your own data, it might be worth looking into. You can also do your own filtering and other computation. Not as pretty as eza though :)

from eza.

cafkafk avatar cafkafk commented on June 21, 2024

Another option may be to one day support nushell "natively", so we can get nice columns and stuff when run in nushell, I think @PThorpe92 looked at it at some point, but IIRC it would require a lot of work. I do know there exists some snippet in the nushell discord for converting eza output to something nushell understands FWIW.

from eza.

cafkafk avatar cafkafk commented on June 21, 2024

It would be nicer to offload this to the shell rather than us having to maintain a plugin system, also from like an ecosystem perspective, it seems more reasonable to have some universal language rather than over-specializing every single binary.

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.