Peisong Xiao b60b31706a
Some checks failed
ci / test (beta, ubuntu-latest, beta) (push) Has been cancelled
ci / test (macos, macos-latest, nightly) (push) Has been cancelled
ci / test (nightly, ubuntu-latest, nightly) (push) Has been cancelled
ci / test (pinned, ubuntu-latest, 1.85.0) (push) Has been cancelled
ci / test (stable, ubuntu-latest, stable) (push) Has been cancelled
ci / test (stable-aarch64, ubuntu-latest, stable, aarch64-unknown-linux-gnu) (push) Has been cancelled
ci / test (stable-arm-gnueabihf, ubuntu-latest, stable, armv7-unknown-linux-gnueabihf) (push) Has been cancelled
ci / test (stable-arm-musleabi, ubuntu-latest, stable, armv7-unknown-linux-musleabi) (push) Has been cancelled
ci / test (stable-arm-musleabihf, ubuntu-latest, stable, armv7-unknown-linux-musleabihf) (push) Has been cancelled
ci / test (stable-musl, ubuntu-latest, stable, x86_64-unknown-linux-musl) (push) Has been cancelled
ci / test (stable-powerpc64, ubuntu-latest, stable, powerpc64-unknown-linux-gnu) (push) Has been cancelled
ci / test (stable-riscv64, ubuntu-latest, stable, riscv64gc-unknown-linux-gnu) (push) Has been cancelled
ci / test (stable-s390x, ubuntu-latest, stable, s390x-unknown-linux-gnu) (push) Has been cancelled
ci / test (stable-x86, ubuntu-latest, stable, i686-unknown-linux-gnu) (push) Has been cancelled
ci / test (win-gnu, windows-latest, nightly-x86_64-gnu) (push) Has been cancelled
ci / test (win-msvc, windows-latest, nightly) (push) Has been cancelled
ci / test (winaarch64-msvc, windows-11-arm, nightly) (push) Has been cancelled
ci / wasm (push) Has been cancelled
ci / rustfmt (push) Has been cancelled
ci / docs (push) Has been cancelled
ci / Compile Fuzz Test Targets (push) Has been cancelled
Merge pull request 'rgs-dev done' (#1) from rgs-dev into master
Reviewed-on: #1
2026-01-14 01:36:52 +00:00
2025-09-19 21:08:19 -04:00
2018-09-07 12:27:48 -04:00
2023-09-25 14:39:54 -04:00
2022-08-17 08:31:22 -04:00
2025-10-30 13:30:14 -04:00
2016-02-27 11:07:26 -05:00
2016-09-30 12:51:37 -05:00
2016-02-27 11:07:26 -05:00
2025-09-19 21:08:19 -04:00
2016-02-27 11:07:26 -05:00

rgs

This repository is a fork of ripgrep with additional features. The original ripgrep documentation is in README-ripgrep.md:

  • README-ripgrep.md

Additional features in this fork

Multiline windowing

  • --multiline-window=N (short: -W N) limits multiline matches to a sliding window of N lines while still using multiline matching semantics.
  • --multiline-window implicitly enables --multiline and cannot be used with --no-multiline.

Per-file match indexing

  • --in-file-index / --no-in-file-index control indexing of matches within a file to disambiguate overlapping multiline results.
  • When enabled, output is formatted as filename[index]:line:.
  • When searching a single file, the output is formatted as [index]:line: (no filename).

Squashed output

  • --squash collapses contiguous Unicode whitespace (including newlines) into a single ASCII space in output.
  • --squash-nl-only collapses newlines into spaces while preserving other whitespace.
  • When multiple lines are squashed into one, line numbers are printed as start-end:.

Binary name

  • The target binary name is rgs (not rg).

Acknowledgements

This project is built on top of ripgrep by Andrew Gallant and contributors. All credit for the original tool, documentation, and design belongs to the ripgrep project. See README-ripgrep.md and the upstream licenses for details.

Description
ripgrep with structure. Additions to ripgrep for structured text searching.
Readme 6.1 MiB
2026-01-14 01:45:43 +00:00
Languages
Rust 94.6%
Python 2.5%
Shell 2.1%
Roff 0.7%