Skip to content

feat(rg): emit hyperlink prefixes - #1694

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

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

Conversation

@chaliy

@chaliy chaliy commented May 22, 2026

Copy link
Copy Markdown
Contributor

What

Adds rg --hyperlink-format output for color-enabled filename prefixes.

Why

Bashkit accepted --hyperlink-format as a no-op, while real rg emits OSC 8 hyperlink wrappers around the path/line/column prefix when color output is enabled.

How

  • Parses common hyperlink aliases and custom URL templates containing {path}.
  • Emits OSC 8 wrappers around the displayed prefix and closes before the match-field separator.
  • Adds byte-exact real-rg differential coverage and normalizes canonical temp paths in the differential harness.

Risk

  • Low / Medium
  • Only affects explicit hyperlink output, plus test-only normalization for real-rg temp roots.

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 803af45 Commit Preview URL May 22 2026, 11:51 PM

@chaliy
chaliy merged commit e0ad1fc into main May 23, 2026
34 checks passed
@chaliy
chaliy deleted the 2026-05-22-rg-batch-15 branch May 23, 2026 00:03
chaliy added a commit that referenced this pull request May 30, 2026
## What
Adds rg `--hyperlink-format` output for color-enabled filename prefixes.

## Why
Bashkit accepted `--hyperlink-format` as a no-op, while real rg emits
OSC 8 hyperlink wrappers around the path/line/column prefix when color
output is enabled.

## How
- Parses common hyperlink aliases and custom URL templates containing
`{path}`.
- Emits OSC 8 wrappers around the displayed prefix and closes before the
match-field separator.
- Adds byte-exact real-rg differential coverage and normalizes canonical
temp paths in the differential harness.

## Risk
- Low / Medium
- Only affects explicit hyperlink output, plus test-only normalization
for real-rg temp roots.

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