Skip to content

feat(rg): add max columns modes - #1655

Merged
chaliy merged 1 commit into
mainfrom
2026-05-22-rg-max-columns
May 22, 2026
Merged

chaliy merged 1 commit into
mainfrom
2026-05-22-rg-max-columns

Conversation

@chaliy

@chaliy chaliy commented May 22, 2026

Copy link
Copy Markdown
Contributor

What

Add rg -M/--max-columns and --max-columns-preview support for long output lines.

Why

Match real ripgrep behavior for omitted long matching/context lines and previews.

How

Parse max-column flags, route full-line output through a shared omission/preview formatter, and add real-rg differential coverage for normal, context, and passthru modes.

Risk

  • Low / Medium / High
  • Low: scoped to rg output formatting, with focused unit tests and pinned real-rg differentials.

Checklist

  • Tests added or updated
  • Backward compatibility considered

Verification: just pre-pr

@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 8b44955 Commit Preview URL May 22 2026, 04:44 AM

@chaliy
chaliy merged commit 764ddbd into main May 22, 2026
34 checks passed
@chaliy
chaliy deleted the 2026-05-22-rg-max-columns branch May 22, 2026 04:56
chaliy added a commit that referenced this pull request May 30, 2026
## What
Add rg -M/--max-columns and --max-columns-preview support for long
output lines.

## Why
Match real ripgrep behavior for omitted long matching/context lines and
previews.

## How
Parse max-column flags, route full-line output through a shared
omission/preview formatter, and add real-rg differential coverage for
normal, context, and passthru modes.

## Risk
- Low / Medium / High
- Low: scoped to rg output formatting, with focused unit tests and
pinned real-rg differentials.

## Checklist
- [x] Tests added or updated
- [x] Backward compatibility considered

Verification: just pre-pr
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