GithubHelp home page GithubHelp logo

Add a --classic flag about lsd HOT 3 CLOSED

lsd-rs avatar lsd-rs commented on July 23, 2024 1
Add a --classic flag

from lsd.

Comments (3)

Peltoche avatar Peltoche commented on July 23, 2024 1

The --no-icons is already planned with the same logic than --color (#69) and it can solve most of the usecases.

Based on my experience I think the --classic could useful because most of the time when I pipe ls I use less behind for the pagination (ls --tree | less for example). With the default --color (and soon the default --icon) flag value to auto I loose the colors (and soon icons). In order to solve this my alias looks like alias ls='lsd --color=always --icon=always and my less output is pretty again.

This solution works fine with most of my daily needs but sometimes I want to use the ls output for other stuff than less. In those few cases I am currently blocked by my alias. It's in this case that the --classic can help. By explicitly use this flag (ls --classic | xargs rm) I override temporary all my configurations set into my alias and remove all the icons and the colors in order to make xargs usable.

from lsd.

mitnk avatar mitnk commented on July 23, 2024

--classic may not needed explicitly to users. When lsd is found being redirected into pipes, it should make itself remove colors, hide icons, etc. (just like classic ls do with --color=auto).

from lsd.

mitnk avatar mitnk commented on July 23, 2024

Just for curiosity, in what situation you need always, while auto doesn't do the job?

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.