lsd-rs / lsd-rs/lsd

Incorrect sorting when `display` config option is used.

Open
#1,131 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
16.2k
Forks
510
PR merge metrics
No merged PRs in 30d

Description

- os: MacOS 15.3.2
- `lsd --version`: lsd 1.1.5
- `echo $TERM`: xterm-ghostty
- `echo $LS_COLORS`: ` `

## Expected behavior
The `sorting: column: ` setting is respected.

## Actual behavior
If `display:` is used, the sort order is incorrect.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with lsd 1.1.5 on macOS using a configuration that sets both `display:` and `sorting: column:`. Trace the sorting and display-option handling to identify why the column order changes, then verify that the configured sort order is respected when `display:` is enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.