Skip to content

feat(rg): add unrestricted filter mode - #1658

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

chaliy merged 1 commit into
mainfrom
2026-05-22-rg-unrestricted

Conversation

@chaliy

@chaliy chaliy commented May 22, 2026

Copy link
Copy Markdown
Contributor

What

Add rg -u/--unrestricted support, including repeated -u levels.

Why

Real ripgrep uses unrestricted mode as a common shortcut to progressively disable filters: ignore files, hidden-file filtering, then binary-file filtering.

How

  • Add repeatable unrestricted parsing for -u and --unrestricted
  • Map first use to --no-ignore, second to --hidden, third to --binary
  • Add real-rg differential fixtures for -u, -uu, -uuu, and repeated long flags
  • Update rg help and compatibility/status docs

Risk

  • Low
  • Changes only rg option parsing and already-backed filtering modes

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 fe760fe Commit Preview URL May 22 2026, 05:56 AM

@chaliy
chaliy merged commit af62e30 into main May 22, 2026
34 checks passed
@chaliy
chaliy deleted the 2026-05-22-rg-unrestricted branch May 22, 2026 06:08
chaliy added a commit that referenced this pull request May 30, 2026
## What
Add rg -u/--unrestricted support, including repeated -u levels.

## Why
Real ripgrep uses unrestricted mode as a common shortcut to
progressively disable filters: ignore files, hidden-file filtering, then
binary-file filtering.

## How
- Add repeatable unrestricted parsing for -u and --unrestricted
- Map first use to --no-ignore, second to --hidden, third to --binary
- Add real-rg differential fixtures for -u, -uu, -uuu, and repeated long
flags
- Update rg help and compatibility/status docs

## Risk
- Low
- Changes only rg option parsing and already-backed filtering modes

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