lsd-rs / lsd-rs/lsd

[Feature Request] Implement `-H` for ls compatability

Open
#1,172 0 comments 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

When using `-l` there is no way to follow symlinks.
In classic `ls` this is done with the `-H` flag which does not exist in `lsd`.

## Expected behavior
```
$ ls -lH my_link
total 0
-rw-r--r-- 1 daniel users 0 Nov 28 15:33 bar
-rw-r--r-- 1 daniel users 0 Nov 28 15:33 baz
-rw-r--r-- 1 daniel users 0 Nov 28 15:33 foo
```

## Actual behavior
```
$ ls -lH my_link
error: unexpected argument '-H' found

tip: to pass '-H' as a value, use '-- -H'

Usage: lsd [OPTIONS] [FILE]...

For more information, try '--help'.
```

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 reported difference between `lsd -lH my_link` and classic `ls -lH my_link`, then trace lsd's option parsing and symlink handling. Done means `-H` is accepted with `-l` and a symlink argument displays the target directory contents as shown, while existing behavior remains intact.

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
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.