lsd-rs / lsd-rs/lsd

[suggest]hard to show exact bytes size, let's make use of -h

Open
#1,168 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

- `lsd --version`: 1.2.0

## Actual behavior
By default, it shows human-readable sizes.
To display the exact size in bytes, we have to add an extra option "**--size bytes**", which is not very convenient. beginners have to consult the help command to find the option.

## Expected behavior
By default, it shows sizes in bytes.
Human-readable sizes should be shown when -h is specified.

## Benefits
This reduces the number of keystrokes needed to switch between the two display formats,
also it keeps the behavior consistent with the classic "ls" command, more easy to switch to "lsd".

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

No source file or test is named. Start by locating the CLI option handling and size-formatting code, then trace how the default and -h paths select their display format. Done means the default displays exact byte sizes and -h displays human-readable sizes, while existing behavior remains covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.