Option to force grid view
- Dominant language
- Rust
- Stars
- 16.2k
- Forks
- 510
- PR merge metrics
- No merged PRs in 30d
Description
I know this isn't directly in the scope of a `ls` replacement, but I recently wanted to do something like this so I thought I'd ask.
Basically I don't want `lsd` to blow up my terminal scrollback buffer when I accidentally invoke it in a directory with thousands of files. Piping it to `head -10` works, but the performance feels worse than it could be, because it still outputs the whole directory to stdout, we just throw 99.9% of it away. Also this doesnt print multiple entries per line so we're not making efficient use of the screen space
I think what would be useful is a set of flags with something like the following effects:
- Only print the first N lines of output
- Enable Multiple entries per line even when piped to another program (like`--color always --icon always`)
- Print a summary of the files
- This could be applied to the remaining files from the previous option
- Number of files, perhaps grouped by filetype, last modified etc
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing lsd's existing command-line options and output behavior to determine which requested effects are already supported. The issue proposes several separate features—output limiting, forced multi-column layout, and summaries—so completion would require narrowing the scope and defining precise flag behavior and acceptance criteria.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100