Skip to content

feat(rg): expand custom color styles - #1693

Merged
chaliy merged 1 commit into
mainfrom
2026-05-22-rg-batch-14
May 22, 2026
Merged

chaliy merged 1 commit into
mainfrom
2026-05-22-rg-batch-14

Conversation

@chaliy

@chaliy chaliy commented May 22, 2026

Copy link
Copy Markdown
Contributor

What

Expands rg --colors parity for additional real-rg style attributes and RGB color specs.

Why

Bashkit now supports common --colors specs, but real rg also supports underline, italic, intense/nointense, and r,g,b truecolor foreground/background values.

How

  • Adds style:underline, style:nounderline, style:italic, style:noitalic, style:intense, and style:nointense.
  • Parses r,g,b truecolor specs for foreground/background output.
  • Emits intense ANSI 256-color forms for named foreground/background colors.
  • Adds byte-exact real-rg differential cases plus unit coverage.

Risk

  • Low / Medium
  • Only affects explicitly forced color output with custom --colors specs.

Checklist

  • Tests added or updated
  • Backward compatibility considered

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
bashkit 949c253 Commit Preview URL May 22 2026, 11:27 PM

@chaliy
chaliy merged commit cd09fa8 into main May 22, 2026
34 checks passed
@chaliy
chaliy deleted the 2026-05-22-rg-batch-14 branch May 22, 2026 23:40
chaliy added a commit that referenced this pull request May 30, 2026
## What
Expands rg `--colors` parity for additional real-rg style attributes and
RGB color specs.

## Why
Bashkit now supports common `--colors` specs, but real rg also supports
underline, italic, intense/nointense, and `r,g,b` truecolor
foreground/background values.

## How
- Adds `style:underline`, `style:nounderline`, `style:italic`,
`style:noitalic`, `style:intense`, and `style:nointense`.
- Parses `r,g,b` truecolor specs for foreground/background output.
- Emits intense ANSI 256-color forms for named foreground/background
colors.
- Adds byte-exact real-rg differential cases plus unit coverage.

## Risk
- Low / Medium
- Only affects explicitly forced color output with custom `--colors`
specs.

## Checklist
- [x] Tests added or updated
- [x] Backward compatibility considered
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant