ripgrep
Tìm chuỗi trong cả thư mục cực nhanh từ dòng lệnh, tự bỏ qua file trong .gitignore.
- Nền tảng
- macOS, Windows +1
- Giá
- Miễn phí
- Danh mục
- Công cụ lập trình
- Nhà phát triển
- Andrew Gallant
- Ngôn ngữ
- Tiếng Anh
- Phiên bản
- 16.0.0
Có gì mới
Lịch sử phiên bảnPhiên bản 16.0.0
Sponsorship is appreciated!
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--in0flag 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/--threadsis 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:
- #3522:
Add new-G/--glob-notflag for negating-g/--glob. - #3425, #3622, #3511:
Add nushell completions via--generate complete-nushell(#3425). - #3255:
Add Zed hyperlink alias. - #2962:
Add POSIX character class support in bracket expressions. - #3035:
Add--max-bytesflag to limit bytes per file. - #273, #3459:
Add --in/--in0 flags for reading file paths. - #3317, #3415:
Support RIPGREP_THREADS environment variable. - #3620, #3617:
Delay-load userenv.dll on Windows MSVC.
Bug fixes:
- #3609, #3603:
Reject partial path components when stripping Unix prefixes. - #3605, #3604:
Continue reading ignore files after invalid UTF-8 lines. - #3607, #3614:
Statically link binary on Windows ARM64/MSVC (#3607). - #3593:
-v -m N -A kprinting the rest of the input as matches. - #3581, #1764:
-g !DIRNAME/couldn't match when the CWD isDIRNAME. - #2552:
Don't report ignored broken symlinks when following links. - #3577:
Hostname buffer size at HOST_NAME_MAX. - #3382:
Preserve buffered matches after parallel search errors. - #3526:
Hyperlink paths that are not valid UTF-8. - #2745:
Exclude path separator from character classes. - #3534:
Detect symlink loops above the search root. - #3617:
Don't compare against stdout when it's a pipe on Windows. - #2958:
Sanitize paths by removing control codes in output. - #3527:
Treat lone!gitignore line as a no-op. - #3484:
Separate Scheme from Lisp file types. - #3342:
Detect compressed files by magic number, not just extension. - #3477:
Parse trailing spaces correctly in gitignore patterns. - #1983, #3364:
--jsonshould emit multiple matches in multiline mode. - #3222:
Separate flags from paths in decompression commands. - #3503:
Fall back past MAX_LOOK_AHEAD in multi-line match discovery.
Documentation:
- #3598:
Clarify PATH environment variable in flag documentation. - #3551:
Note that nesting{...}alternates is allowed. - #3538:
Document git divergence in matched_path_or_any_parents. - #3243:
Emit .TP for each flag entry to generate linkable anchors. - #3500:
Clarify that the-r/--replaceflag is not recursive search. - #3323:
Remove$prompt symbols from README code blocks. - #3448:
Update guide examples for a more recent release.
Performance:
- #3597, #3594:
Skip path resolution when hyperlinks are disabled. - #2832:
Honor custom line terminators in the regex engine.
Ghi chú lấy từ bản phát hành chính thức trên GitHub.
Giới thiệu
ripgrep (rg)
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. (To disable
all automatic filtering by default, use rg -uuu.) ripgrep has first class
support on Windows, macOS and Linux, with binary downloads available for every
release. ripgrep is similar to
other popular search tools like The Silver Searcher, ack and grep.
Dual-licensed under MIT or the UNLICENSE.
Cài đặt và sử dụng
Homebrew
brew install ripgrepWindows (winget)
winget install BurntSushi.ripgrep.MSVCDebian / Ubuntu
sudo apt install ripgrepTệp tải về
Phiên bản 16.0.0macOS
Windows
- ripgrep-16.0.0-x86_64-pc-windows-gnu.zipx64 · ZIP · 1,8 MB · 3.092 lượt tảiTải
- ripgrep-16.0.0-x86_64-pc-windows-msvc.zipx64 · ZIP · 1,7 MB · 179.761 lượt tảiTải
- ripgrep-16.0.0-aarch64-pc-windows-msvc.zipARM64 · ZIP · 1,6 MB · 15.732 lượt tảiTải
- ripgrep-16.0.0-i686-pc-windows-msvc.zipx86 (32-bit) · ZIP · 1,6 MB · 827 lượt tảiTải
Linux
- ripgrep_16.0.0-1_amd64.debx64 · DEB · 1,6 MB · 1.287 lượt tảiTải
- ripgrep-16.0.0-riscv64gc-unknown-linux-gnu.tar.gzTAR.GZ · 1,8 MB · 210 lượt tảiTải
- ripgrep-16.0.0-s390x-unknown-linux-gnu.tar.gzTAR.GZ · 2,2 MB · 119 lượt tảiTải
- ripgrep-16.0.0-x86_64-unknown-linux-gnu.tar.gzx64 · TAR.GZ · 1,9 MB · 85.124 lượt tảiTải
- ripgrep-16.0.0-x86_64-unknown-linux-musl.tar.gzx64 · TAR.GZ · 2,1 MB · 311.972 lượt tảiTải
- ripgrep-16.0.0-aarch64-unknown-linux-gnu.tar.gzARM64 · TAR.GZ · 1,8 MB · 72.542 lượt tảiTải
- ripgrep-16.0.0-aarch64-unknown-linux-musl.tar.gzARM64 · TAR.GZ · 1,9 MB · 45.560 lượt tảiTải
- ripgrep-16.0.0-armv7-unknown-linux-gnueabihf.tar.gzARMv7 · TAR.GZ · 1,7 MB · 141 lượt tảiTải
- ripgrep-16.0.0-armv7-unknown-linux-musleabi.tar.gzARMv7 · TAR.GZ · 1,7 MB · 118 lượt tảiTải
- ripgrep-16.0.0-armv7-unknown-linux-musleabihf.tar.gzARMv7 · TAR.GZ · 1,7 MB · 127 lượt tảiTải
- ripgrep-16.0.0-i686-unknown-linux-gnu.tar.gzx86 (32-bit) · TAR.GZ · 1,8 MB · 330 lượt tảiTải
Có thể bạn cũng thích
Tự định dạng code JavaScript, TypeScript, CSS, Markdown… mỗi khi lưu file trong VS Code.