masukomi / masukomi/Prettier-Table

[feature] toggle background color on alternating rows

Open
#7 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Raku
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Alternating the background color (optionally) of each row can make things much more readable, especially when the tables are particularly tall or wide.

proposal:

1. alternating colors are off by default
2. default background color when turned on.
3. optionally specify an RGB colors to use for the background color.
- `alternating_colors => [[r,g,b],[r,g,b]]`
- no limit to the number of alternating colors. the system would just choose the next color in the list and then jump back to the starting color when it runs out. `Nil` is a valid option and would just result in _no_ background color. Users could specify something like `alternating_colors=>PrettierTable.alternating_rows` if they wanted the defaults, and that would just be `[Nil, [r,g,b]]` where the rgb defined some dark grey.

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

No files or tests are named. Start by locating the table-rendering and configuration entry points, then define the behavior for disabled, default, RGB-list, Nil, and wraparound cases. Done means the feature is optional, supports the proposed color choices, and has coverage for the specified behavior.

Written by the indexing model from the issue text.

Assessment

Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.