athityakumar / athityakumar/colorls

Adding a flag for paging

Open
#171 2 comments 2 reactions 0 assignees View on GitHub
enhancement Flag Hacktoberfest help wanted Language:Ruby Up-For-Grabs
Dominant language
Ruby
Stars
5.1k
Forks
396
PR merge metrics
No merged PRs in 30d

Description

### Description

When piping the output from colorls to `more` or `less`, the colors are lost and I see no way of retaining them. How about adding a flag to colorls directly that does paging when needed?

- Relevant Issues : (none)
- Relevant PRs : (none)
- Type of issue :
- [ ] Installation
- [ ] Font-related
- [x] Feature request
- [ ] Bug in existing feature
- [ ] Developer mode : Code quality / Tests / Documentation

Contributor guide

Open the contributing guide

Research direction

Start by tracing colorls's CLI option parsing and output path, then verify how piping to more or less currently affects colors. Done means a flag is defined for paging when needed and its behavior is documented and covered by the relevant checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
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.