Coder Social home page Coder Social logo

Comments (10)

CarloCattano avatar CarloCattano commented on June 17, 2024 3

came here looking for others having the same.
lsd 1.1.1

ls returns a vertical list of files if the size cant hold them all in one line

from lsd.

zwpaper avatar zwpaper commented on June 17, 2024 1

I decided to rollback the term_grid dependency and we can later discuss which version or libs we should upgrade to.

#1019, after this one is merged, I will release a v1.1.2 to do a quick fix.

sorry for the bothering, I was kinda busy recently, but this should not be an excuse

from lsd.

wwwjfy avatar wwwjfy commented on June 17, 2024

It seems -a doesn't matter (much) here.
My observation is if non-. items cannot fit in one line, it'll show one item per line.

In the above case non-. items are not many, so even though with both it's wider than one line, it still behaves as expected.

I'm using iTerm2. This is new in the last release.

from lsd.

nogweii avatar nogweii commented on June 17, 2024
  • lsd --version: lsd 1.1.1
  • echo $TERM: xterm-kitty
  • Arch Linux

Running into the same issue.

I've aliased ls to /usr/bin/lsd --icon=auto --color=auto -F, and indeed adding -a will make files wrap as expected.

from lsd.

zwpaper avatar zwpaper commented on June 17, 2024

it was introduced because we upgraded the term_grid = "0.1.*" dependency to the newer version, let me have a look at it.

from lsd.

oneElectron avatar oneElectron commented on June 17, 2024

I am also having this issue.

  • lsd --version: lsd 1.1.1
  • echo $TERM: alacritty
  • MacOS 14.4

from lsd.

FischLu avatar FischLu commented on June 17, 2024

I have the same issue

  • lsd --version: lsd 1.1.1
  • echo $TERM: xterm-256color
  • MacOS 14.4

from lsd.

nogweii avatar nogweii commented on June 17, 2024

Hm, I think I've found the root cause - term_grid doesn't ignore ANSI codes when calculating the width of each entry. That could be tricky to solve...

EDIT: Ah, actually there's a more maintained fork of the library at https://github.com/uutils/uutils-term-grid ! And it does properly ignore ANSI codes.

from lsd.

zwpaper avatar zwpaper commented on June 17, 2024

as now https://github.com/lsd-rs/lsd/releases/tag/v1.1.2 released, this would be close
/close

from lsd.

muniu-bot avatar muniu-bot commented on June 17, 2024

@zwpaper: Closing this issue.

In response to this:

as now https://github.com/lsd-rs/lsd/releases/tag/v1.1.2 released, this would be close
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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.