Skip to content

feat(rg): expand generated completion flags - #1683

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

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

Conversation

@chaliy

@chaliy chaliy commented May 22, 2026

Copy link
Copy Markdown
Contributor

What

Expands rg generated completion outputs to include the accepted flag surface that was missing from the synthetic completion list.

Why

Real rg completions advertise reset and advanced flags like --no-byte-offset, --null-data, --no-pre, --glob-case-insensitive, and --no-search-zip. Bashkit already parsed many of these but omitted them from --generate outputs.

How

  • Updates the generated completion flag source to mirror real rg's completion flag set for supported/no-op options.
  • Adds differential markers for generated completions against real rg.
  • Adds unit assertions for the previously missing completion flags.

Risk

  • Low
  • Only generated help/completion text changes; search behavior is unchanged.

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 77ea508 Commit Preview URL May 22 2026, 05:32 PM

@chaliy
chaliy merged commit 7efbd3d into main May 22, 2026
37 of 38 checks passed
@chaliy
chaliy deleted the 2026-05-22-rg-batch-9 branch May 22, 2026 17:47
chaliy added a commit that referenced this pull request May 30, 2026
## What
Expands rg generated completion outputs to include the accepted flag
surface that was missing from the synthetic completion list.

## Why
Real rg completions advertise reset and advanced flags like
`--no-byte-offset`, `--null-data`, `--no-pre`,
`--glob-case-insensitive`, and `--no-search-zip`. Bashkit already parsed
many of these but omitted them from `--generate` outputs.

## How
- Updates the generated completion flag source to mirror real rg's
completion flag set for supported/no-op options.
- Adds differential markers for generated completions against real rg.
- Adds unit assertions for the previously missing completion flags.

## Risk
- Low
- Only generated help/completion text changes; search behavior is
unchanged.

## 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