Skip to content

ripgrep

ripgrep is a command line search tool like grep, but with a better user experience and faster.

What is ripgrep

ripgrep is a line-oriented search tool that recursively searches the current directory for a regex pattern. By default, ripgrep will respect gitignore rules and automatically skip hidden files/directories and binary files.

How to use ripgrep

If you'd like to try ripgrep before installing, there's an unofficial playground and an interactive tutorial.

Installation

ps
choco install ripgrep
Chocolatey v2.3.0
Installing the following packages:
ripgrep
By installing, you accept licenses for the packages.
Downloading package from source 'https://community.chocolatey.org/api/v2/'
Progress: Downloading ripgrep 14.1.0... 100%

ripgrep v14.1.0 [Approved]
ripgrep package files install completed. Performing other installation steps.
The package ripgrep wants to run 'chocolateyinstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint):

Timeout or your choice of '' is not a valid selection.
You must select an answer
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): A

Extracting 64-bit C:\ProgramData\chocolatey\lib\ripgrep\tools\ripgrep-14.1.0-x86_64-pc-windows-msvc.zip to C:\ProgramData\chocolatey\lib\ripgrep\tools...
C:\ProgramData\chocolatey\lib\ripgrep\tools
ripgrep installed to C:\ProgramData\chocolatey\lib\ripgrep\tools
 ShimGen has successfully created a shim for rg.exe
 The install of ripgrep was successful.
  Deployed to 'C:\ProgramData\chocolatey\lib\ripgrep\tools'

Chocolatey installed 1/1 packages.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Why a prerequisite for Neovim

This question remains to be answered