Files
tldr/pages.zh/common/rga.md

24 lines
575 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# rga
> 一个具有丰富文件类型搜索功能的Ripgrep包装器。
> 更多信息:<https://github.com/phiresky/ripgrep-all>。
- 在当前目录中的所有文件中递归搜索模式:
`rga {{正则表达式}}`
- 列出可用的适配器:
`rga --rga-list-adapters`
- 更改要使用的适配器例如ffmpeg、pandoc、poppler等
`rga --rga-adapters={{适配器1,适配器2}} {{正则表达式}}`
- 使用MIME类型而不是文件扩展名搜索模式速度较慢
`rga --rga-accurate {{正则表达式}}`
- 显示帮助:
`rga --help`