[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-5512":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":16,"starSnapshotCount":16,"syncStatus":17,"lastSyncTime":30,"discoverSource":31},5512,"ripgrep-all","phiresky\u002Fripgrep-all","phiresky","rga: ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz, etc.","",null,"Rust",9686,214,41,63,0,2,23,85,14,38,"Other",false,"master",true,[],"2026-06-12 02:01:11","# rga: ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz, etc.\n\nrga is a line-oriented search tool that allows you to look for a regex in a multitude of file types. rga wraps the awesome [ripgrep] and enables it to search in pdf, docx, sqlite, jpg, movie subtitles (mkv, mp4), etc.\n\n[ripgrep]: https:\u002F\u002Fgithub.com\u002FBurntSushi\u002Fripgrep\n\n[![github repo](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Frepo-github.com%2Fphiresky%2Fripgrep--all-informational.svg)](https:\u002F\u002Fgithub.com\u002Fphiresky\u002Fripgrep-all)\n[![Crates.io](https:\u002F\u002Fimg.shields.io\u002Fcrates\u002Fv\u002Fripgrep-all.svg)](https:\u002F\u002Fcrates.io\u002Fcrates\u002Fripgrep-all)\n[![fearless concurrency](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fconcurrency-fearless-success.svg)](https:\u002F\u002Fwww.reddit.com\u002Fr\u002Frustjerk\u002Ftop\u002F?sort=top&t=all)\n\nFor more detail, see this introductory blogpost: https:\u002F\u002Fphiresky.github.io\u002Fblog\u002F2019\u002Frga--ripgrep-for-zip-targz-docx-odt-epub-jpg\u002F\n\nrga will recursively descend into archives and match text in every file type it knows.\n\nHere is an [example directory](https:\u002F\u002Fgithub.com\u002Fphiresky\u002Fripgrep-all\u002Ftree\u002Fmaster\u002Fexampledir\u002Fdemo) with different file types:\n\n```\ndemo\u002F\n├── greeting.mkv\n├── hello.odt\n├── hello.sqlite3\n└── somearchive.zip\n├── dir\n│ ├── greeting.docx\n│ └── inner.tar.gz\n│ └── greeting.pdf\n└── greeting.epub\n```\n\n![rga output](doc\u002Fdemodir.png)\n\n## Integration with fzf\n\n![rga-fzf](doc\u002Frga-fzf.gif)\n\nSee [the wiki](https:\u002F\u002Fgithub.com\u002Fphiresky\u002Fripgrep-all\u002Fwiki\u002Ffzf-Integration) for instructions of integrating rga with fzf.\n\n## INSTALLATION\n\nLinux x64, macOS and Windows binaries are available [in GitHub Releases][latestrelease].\n\n[latestrelease]: https:\u002F\u002Fgithub.com\u002Fphiresky\u002Fripgrep-all\u002Freleases\u002Flatest\n\n### Linux\n\n#### Arch Linux\n\n`pacman -S ripgrep-all`\n\n#### Gentoo Linux\n\n`emerge sys-apps\u002Fripgrep-all`\n\n#### Nix\n\n`nix-env -iA nixpkgs.ripgrep-all`\n\n#### Debian-based\n\ndownload the [rga binary][latestrelease] and get the dependencies like this:\n\n`apt install ripgrep pandoc poppler-utils ffmpeg`\n\nIf ripgrep is not included in your package sources, get it from [here](https:\u002F\u002Fgithub.com\u002FBurntSushi\u002Fripgrep\u002Freleases).\n\nrga will search for all binaries it calls in \\$PATH and the directory itself is in.\n\n### Windows\n\nNote that installing via [chocolatey](https:\u002F\u002Fchocolatey.org\u002Fpackages\u002Fripgrep-all) or [scoop](https:\u002F\u002Fgithub.com\u002FScoopInstaller\u002FMain\u002Fblob\u002Fmaster\u002Fbucket\u002Frga.json) is the only supported download method. If you download the binary from releases manually, you will not get the dependencies (for example pdftotext from poppler).\n\nIf you get an error like `VCRUNTIME140.DLL could not be found`, you need to install [vc_redist.x64.exe](https:\u002F\u002Fsupport.microsoft.com\u002Fen-us\u002Fhelp\u002F2977003\u002Fthe-latest-supported-visual-c-downloads).\n\n#### Chocolatey\n\n```\nchoco install ripgrep-all\n```\n\n#### Scoop\n\n```\nscoop install rga\n```\n\n### Homebrew\u002FLinuxbrew\n\n`rga` can be installed with [Homebrew](https:\u002F\u002Fformulae.brew.sh\u002Fformula\u002Fripgrep-all#default):\n\n`brew install rga`\n\nTo install the dependencies that are each not strictly necessary but very useful:\n\n`brew install pandoc poppler ffmpeg`\n\n### MacPorts\n\n`rga` can also be installed on macOS via [MacPorts](https:\u002F\u002Fports.macports.org\u002Fport\u002Fripgrep-all\u002F):\n\n`sudo port install ripgrep-all`\n\n### Compile from source\n\nrga should compile with stable Rust (v1.75.0+, check with `rustc --version`). To build it, run the following (or the equivalent in your OS):\n\n```\n~$ apt install build-essential pandoc poppler-utils ffmpeg ripgrep cargo\n~$ cargo install --locked ripgrep_all\n~$ rga --version    # this should work now\n```\n\n## Available Adapters\n\nrga works with _adapters_ that adapt various file formats. It comes with a few adapters integrated:\n\n```\nrga --rga-list-adapters\n```\n\nYou can also add **custom adapters**. See [the wiki](https:\u002F\u002Fgithub.com\u002Fphiresky\u002Fripgrep-all\u002Fwiki) for more information.\n\n\u003C!-- this part generated by update-readme.sh -->\n\nAdapters:\n\n- **pandoc**\n  Uses pandoc to convert binary\u002Funreadable text documents to plain markdown-like text\n  Runs: pandoc --from= --to=plain --wrap=none --markdown-headings=atx  \n   Extensions: .epub, .odt, .docx, .fb2, .ipynb, .html, .htm\n\n- **poppler**\n  Uses pdftotext (from poppler-utils) to extract plain text from PDF files\n  Runs: pdftotext - -  \n   Extensions: .pdf  \n   Mime Types: application\u002Fpdf\n\n- **postprocpagebreaks**\n  Adds the page number to each line for an input file that specifies page breaks as ascii page break character.\n  Mainly to be used internally by the poppler adapter.  \n   Extensions: .asciipagebreaks\n\n- **ffmpeg**\n  Uses ffmpeg to extract video metadata\u002Fchapters, subtitles, lyrics, and other metadata  \n   Extensions: .mkv, .mp4, .avi, .mp3, .ogg, .flac, .webm\n\n- **zip**\n  Reads a zip file as a stream and recurses down into its contents  \n   Extensions: .zip, .jar  \n   Mime Types: application\u002Fzip\n\n- **decompress**\n  Reads compressed file as a stream and runs a different extractor on the contents.  \n   Extensions: .als, .bz2, .gz, .tbz, .tbz2, .tgz, .xz, .zst  \n   Mime Types: application\u002Fgzip, application\u002Fx-bzip, application\u002Fx-xz, application\u002Fzstd\n\n- **tar**\n  Reads a tar file as a stream and recurses down into its contents  \n   Extensions: .tar\n\n- **sqlite**\n  Uses sqlite bindings to convert sqlite databases into a simple plain text format  \n   Extensions: .db, .db3, .sqlite, .sqlite3  \n   Mime Types: application\u002Fx-sqlite3\n\nThe following adapters are disabled by default, and can be enabled using '--rga-adapters=+foo,bar':\n\n- **mail**\n  Reads mailbox\u002Fmail files and runs extractors on the contents and attachments.  \n   Extensions: .mbox, .mbx, .eml  \n   Mime Types: application\u002Fmbox, message\u002Frfc822\n\n## USAGE:\n\n> rga \\[RGA OPTIONS\\] \\[RG OPTIONS\\] PATTERN \\[PATH \\...\\]\n\n\n## FLAGS:\n\n**\\--rga-accurate**\n\n> Use more accurate but slower matching by mime type\n\n> By default, rga will match files using file extensions. Some programs,\n> such as sqlite3, don\\'t care about the file extension at all, so users\n> sometimes use any or no extension at all. With this flag, rga will try\n> to detect the mime type of input files using the magic bytes (similar\n> to the \\`file\\` utility), and use that to choose the adapter.\n> Detection is only done on the first 8KiB of the file, since we can\\'t\n> always seek on the input (in archives).\n\n**\\--rga-no-cache**\n\n> Disable caching of results\n\n> By default, rga caches the extracted text, if it is small enough, to a\n> database in \\${XDG_CACHE_DIR-\\~\u002F.cache}\u002Fripgrep-all on Linux,\n> _\\~\u002FLibrary\u002FCaches\u002Fripgrep-all_ on macOS, or\n> C:\\\\Users\\\\username\\\\AppData\\\\Local\\\\ripgrep-all on Windows. This way,\n> repeated searches on the same set of files will be much faster. If you\n> pass this flag, all caching will be disabled.\n\n**-h**, **\\--help**\n\n> Prints help information\n\n**\\--rga-list-adapters**\n\n> List all known adapters\n\n**\\--rga-print-config-schema**\n\n> Print the JSON Schema of the configuration file\n\n**\\--rg-help**\n\n> Show help for ripgrep itself\n\n**\\--rg-version**\n\n> Show version of ripgrep itself\n\n**-V**, **\\--version**\n\n> Prints version information\n\n## OPTIONS:\n\n**\\--rga-adapters=**\\\u003Cadapters\\>\\...\n\n> Change which adapters to use and in which priority order (descending)\n\n> \\\"foo,bar\\\" means use only adapters foo and bar. \\\"-bar,baz\\\" means\n> use all default adapters except for bar and baz. \\\"+bar,baz\\\" means\n> use all default adapters and also bar and baz.\n\n**\\--rga-cache-compression-level=**\\\u003Ccompression-level\\>\n\n> ZSTD compression level to apply to adapter outputs before storing in\n> cache db\n\n> Ranges from 1 - 22 \\[default: 12\\]\n\n**\\--rga-config-file=**\\\u003Cconfig-file-path\\>\n\n**\\--rga-max-archive-recursion=**\\\u003Cmax-archive-recursion\\>\n\n> Maximum nestedness of archives to recurse into \\[default: 5\\]\n\n**\\--rga-cache-max-blob-len=**\\\u003Cmax-blob-len\\>\n\n> Max compressed size to cache\n\n> Longest byte length (after compression) to store in cache. Longer\n> adapter outputs will not be cached and recomputed every time.\n\n> Allowed suffixes on command line: k M G \\[default: 2000000\\]\n\n**\\--rga-cache-path=**\\\u003Cpath\\>\n\n> Path to store cache db \\[default: \u002Fhome\u002Fphire\u002F.cache\u002Fripgrep-all\\]\n\n**-h** shows a concise overview, **\\--help** shows more detail and\nadvanced options.\n\nAll other options not shown here are passed directly to rg, especially\n\\[PATTERN\\] and \\[PATH \\...\\]\n\n\u003C!-- end of part generated by update-readme.sh -->\n\n## Config\nThe config file location leverage the mechanisms defined by\n- the [XDG base directory](https:\u002F\u002Fstandards.freedesktop.org\u002Fbasedir-spec\u002Fbasedir-spec-latest.html) and\n  the [XDG user directory](https:\u002F\u002Fwww.freedesktop.org\u002Fwiki\u002FSoftware\u002Fxdg-user-dirs\u002F) specifications on Linux (ex: `~\u002F.config\u002Fripgrep-all\u002Fconfig.jsonc`)\n- the [Known Folder](https:\u002F\u002Fmsdn.microsoft.com\u002Fen-us\u002Flibrary\u002Fwindows\u002Fdesktop\u002Fdd378457.aspx) API on Windows (ex:  `C:\\Users\\Alice\\AppData\\Roaming\\ripgrep-all\u002Fconfig.jsonc`)\n- the [Standard Directories](https:\u002F\u002Fdeveloper.apple.com\u002Flibrary\u002Fcontent\u002Fdocumentation\u002FFileManagement\u002FConceptual\u002FFileSystemProgrammingGuide\u002FFileSystemOverview\u002FFileSystemOverview.html#\u002F\u002Fapple_ref\u002Fdoc\u002Fuid\u002FTP40010672-CH2-SW6)\n  guidelines on macOS (ex: `~\u002FLibrary\u002FApplication Support\u002Fripgrep-all\u002Fconfig.jsonc`)\n\n\n## Development\n\nTo enable debug logging:\n\n```bash\nexport RUST_LOG=debug\nexport RUST_BACKTRACE=1\n```\n\nAlso remember to disable caching with `--rga-no-cache` or clear the cache\n(`~\u002FLibrary\u002FCaches\u002Frga` on macOS, `~\u002F.cache\u002Frga` on other Unixes,\nor `C:\\Users\\username\\AppData\\Local\\rga` on Windows)\nto debug the adapters.\n\n### Nix and Direnv\n\nYou can use the provided [`flake.nix`](.\u002Fflake.nix) to setup all build- and\nrun-time dependencies:\n\n1. Enable [Flakes](https:\u002F\u002Fwiki.nixos.org\u002Fwiki\u002FFlakes) in your Nix configuration.\n1. Add [`direnv`](https:\u002F\u002Fdirenv.net\u002F) to your profile:\n   `nix profile install nixpkgs#direnv`\n1. `cd` into the directory where you have cloned this directory.\n1. Allow use of [`.envrc`](.\u002F.envrc): `direnv allow`\n1. After the dependencies have been installed, your shell will now have all of\n   the necessary development dependencies.\n","rga 是一个基于行的搜索工具，能够在多种文件类型中查找正则表达式。它扩展了 ripgrep 的功能，支持在 PDF、DOCX、SQLite 数据库、JPG 图像、视频字幕（如 MKV 和 MP4）等格式中进行全文搜索。采用 Rust 语言编写，具备高效并发处理能力。适合需要跨多种文件格式执行文本检索的应用场景，例如开发者日常代码或文档搜索、数据分析师处理复杂数据集时快速定位信息等。","2026-06-11 03:03:45","top_language"]