lsd-rs / lsd-rs/lsd

Add a forced grid mode

Open
#360 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Maybe we should add an option to force a grid mode. This combined with `--blocks` might end up being really powerful.

One example would be

```
$ lsd --grid --blocks name,size
appveyor.yml 3 KB build.rs 1.3 KB Cargo.lock 33 KB Cargo.toml 1.1 KB
CHANGELOG.md 8.2 KB ci 160 B CODEOWNERS 25 B LICENSE 11.1 KB
README.md 5.4 KB src 384 B target 192 B tests 96 B
```

Alternate view

```
appveyor.yml 3 KB build.rs 1.3 KB Cargo.lock 33 KB Cargo.toml 1.1 KB
CHANGELOG.md 8.2 KB ci 160 B CODEOWNERS 25 B LICENSE 11.1 KB
README.md 5.4 KB src 384 B target 192 B tests 96 B
```

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 tracing the existing `--grid` and `--blocks` command-line entry points in lsd and compare their current output behavior. Define the forced grid layout using the two examples in the issue, then verify that combining both options produces aligned rows with the requested fields.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.