ripgrep 16.0.0
比 grep 更快的命令行搜索工具。
软件简介
ripgrep(rg)递归搜索目录中的文本,默认忽略 .gitignore 中的文件,速度极快。
功能特点
- 极速搜索
- 尊重 .gitignore
- 正则支持
- 单文件
更新日志 · 16.0.0
> In case you haven't heard of it before, 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.
ripgrep 16 is a new major version release of ripgrep that mostly has bug fixes,
some minor performance improvements and a small number of new features. Here
are some highlights:
- There is now an
--inflag for telling which files ripgrep should search
by pointing to another containing line delimited file paths. (There is also a
corresponding --in0 flag for NUL delimited file paths.)
- ripgrep now has a
-G/--glob-notflag, which is recommended in lieu of using
! to negate a glob. That is, -g '!*.toml' can now be spelled as
-G '*.toml'.
- ripgrep now respects a new
RIPGREP_THREADSenvironment variable for setting
the default number of threads to use for parallel searches. Whenever
-j/--threads is specified on the command line (or in a configuration file),
it takes precedence over the environment variable.
riscv64has been re-added to ripgrep's release pipeline. Binaries can now
be downloaded for that target.
Enhancements:
Add new -G/--glob-not flag for negating -g/--glob.
Add nushell completions via --generate complete-nushell (#3425).
Add Zed hyperlink alias.
Add POSIX character class support in bracket expressions.
Add --max-bytes flag to limit bytes per file.
Add --in/--in0 flags for reading file paths.
Support RIPGREP_THREADS environment variable.
Delay-load userenv.dll on Windows MSVC.
Bug fixes:
Reject partial path components when stripping Unix prefixes.
Continue reading ignore files after invalid UTF-8 lines.
Statically link binary on Windows ARM64/MSVC (#3607).
-v -m N -A k printing the rest of the input as matches.
-g !DIRNAME/ couldn't match when the CWD is DIRNAME.
Don't report ignored broken symlinks when following links.
Hostname buffer size at HOST_NAME_MAX.
Preserve buffered matches after parallel search errors.
Hyperlink paths that are not valid UTF-8.
Exclude path separator from character classes.
Detect symlink loops above the search root.
Don't compare against stdout when it's a pipe on Windows.
Sanitize paths by removing control codes in output.
Treat lone ! gitignore line as a no-op.
Separate Scheme from Lisp file types.
Detect compressed files by magic number, not just extension.
Parse trailing spaces correctly in gitignore patterns.
--json should emit multiple matches in multiline mode.
Separate flags from paths in decompression commands.
Fall back past MAX_LOOK_AHEAD in multi-line match discovery.
Documentation:
Clarify PATH environment variable in flag documentation.
Note that nesting {...} alternates is allowed.
Document git divergence in matched_path_or_any_parents.
Emit .TP for each flag entry to generate linkable anchors.
Clarify that the -r/--replace flag is not recursive search.
Remove $ prompt symbols from README code blocks.
Update guide examples for a mor
下载地址
官方下载直接指向软件作者的发布地址;网盘镜像为同一文件的转存,下载后可用 SHA-256 核对(官方未提供校验值的文件除外)。
-
Windows x64 · 绿色版 ZIP 绿色免安装ripgrep-16.0.0-x86_64-pc-windows-msvc.zip · 1.7 MB