Xiaxiang Downloads中文
Developer Tools

ripgrep

A command-line search tool that finds text in files and respects your project’s ignore rules.

Software overview

ripgrep searches text across files from a terminal. Run rg with a word or pattern from a project directory to see the filenames and matching lines. Line numbers make it easy to jump to the result in an editor. The ZIP offered here contains the x64 Windows build. It is useful for finding a setting in a repository, tracking a repeated error message or locating an old note.

Software review

Respecting ignore rules keeps routine searches in a large project focused, but it also explains why an expected match can be missing. By default, hidden files and paths excluded by ignore rules can be skipped. If punctuation in a search term should be taken literally, use the fixed-strings option. The illustrated two-file exercise makes these command-line results easy to check before working through a larger directory.

Screenshots

Screenshot credits

How to use

  1. Extract the Windows x64 ZIP. In PowerShell, switch to the extracted directory and run .\rg.exe --version to confirm the binary starts.
  2. Save two Markdown files named guide.md and notes.md alongside rg.exe. Put the word “release” in both, then run .\rg.exe --line-number --ignore-case release guide.md notes.md to see each matching line.
  3. To list only matching files, run .\rg.exe --files-with-matches --ignore-case release guide.md notes.md. For a project-wide search, pass the project folder instead of the two filenames.

Downloads

ripgrep-16.0.0-x86_64-pc-windows-msvc.zip16.0.0 · 1.70 MiB
Verify SHA-256f418ae83e63046a94a7b5f3a44bf3a169f66e689164856ecee02547131c73931