[suggest]hard to show exact bytes size, let's make use of -h
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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