GithubHelp home page GithubHelp logo

Create a Layout enum about lsd HOT 8 CLOSED

lsd-rs avatar lsd-rs commented on July 23, 2024
Create a Layout enum

from lsd.

Comments (8)

loewenheim avatar loewenheim commented on July 23, 2024

I read through the linked #29, but in my tests, lsd currently behaves exactly like ls and exa. Am I missing something?

from lsd.

Peltoche avatar Peltoche commented on July 23, 2024

Hi @loewenheim ,

Nop, you'r missing nothing but the idea was to let the user the possibility to choose the display direction and so propose the same behavior than colorls which go sidewise.

That said I'm not sure that this feature is really necessary...

from lsd.

loewenheim avatar loewenheim commented on July 23, 2024

I see. In preparation for this issue, I’ve implemented an enum Layout that controls how the output is displayed:

enum Layout {
    Grid,
    Line,
    Long,
    Tree,
}

Is this of interest indepently of this issue?

from lsd.

Peltoche avatar Peltoche commented on July 23, 2024

What do you call Line?

from lsd.

loewenheim avatar loewenheim commented on July 23, 2024

Line is what the -1 option produces.

from lsd.

Peltoche avatar Peltoche commented on July 23, 2024

It seems a good idea. What do you think of OneLine instead of Line? Like log format (--oneline).

from lsd.

Peltoche avatar Peltoche commented on July 23, 2024

After some reflexions I think that the Long value should not be inside the layout enum. For me it is more a rule used to define which meta we should display about a file than a layout. For now the Long rule is only displayed with the Line (or OneLine) Layout but it will not be necessary the case later. For example the exa command is able to print the Long output with a Grid Layout: exa -lG.

from lsd.

loewenheim avatar loewenheim commented on July 23, 2024

That makes perfect sense.

from lsd.

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.