{"id":13587727,"url":"https://github.com/jonathanpoelen/batrg","last_synced_at":"2025-12-24T05:38:00.969Z","repository":{"id":149645196,"uuid":"272559873","full_name":"jonathanpoelen/batrg","owner":"jonathanpoelen","description":"Search and highlight files using ripgrep and bat","archived":false,"fork":false,"pushed_at":"2023-05-28T22:24:29.000Z","size":103,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-02-13T21:55:45.895Z","etag":null,"topics":["bat","grep","ripgrep","syntax-highlighting"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonathanpoelen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-06-15T22:51:14.000Z","updated_at":"2024-02-13T21:55:46.841Z","dependencies_parsed_at":"2024-02-13T21:55:46.776Z","dependency_job_id":"54aec090-ae33-48b0-967f-23b70f340047","html_url":"https://github.com/jonathanpoelen/batrg","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanpoelen%2Fbatrg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanpoelen%2Fbatrg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanpoelen%2Fbatrg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanpoelen%2Fbatrg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonathanpoelen","download_url":"https://codeload.github.com/jonathanpoelen/batrg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247740842,"owners_count":20988279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bat","grep","ripgrep","syntax-highlighting"],"created_at":"2024-08-01T15:06:20.108Z","updated_at":"2025-12-24T05:38:00.924Z","avatar_url":"https://github.com/jonathanpoelen.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# Batrg\n\nSearch and highlight files using ripgrep (rg) and bat.\n\n![Batrg sample](./image.png \"Batrg sample\")\n\n\n## Usage\n\n    batrg [OPTIONS] PATTERN [PATH ...]\n    batrg [OPTIONS] [-e PATTERN ...] [-f PATTERNFILE ...] [PATH ...]\n    command | batrg [OPTIONS] PATTERN\n\n\n## Pattern and PATTERNFILE\n\nSee `rg`\n\n\n## Options\n\n- `--snip` \\\n  \\\n  Show the snip decoration (see `bat --style=...`). \\\n  \\\n  This is automatically disabled when `--context=0` (see `bat`).\n\n- `--no-snip` \\\n  \\\n  Disable `--snip`.\n\n- `--highlight` \\\n  \\\n  Highlight matching lines. \\\n  \\\n  This is automatically disabled when `--context=0` (see `bat`).\n\n- `--no-highlight` \\\n  \\\n  Disable `--highlight`.\n\n- `--file-separator=\u003cseparator\u003e` \\\n  \\\n  Character used by the separation line between 2 files, or string separator.\n\n- `--file-separator-wrap` \\\n  \\\n  If a match is found, appends the separator line above  the  first file and below the last file.\n\n- `--no-file-separator-wrap` \\\n  \\\n  Disable `--file-separator-wrap`.\n\n- `--paging=\u003cwhen\u003e` \\\n  \\\n  Specify when to use the pager. To control which pager is used, set the `PAGER` or `BAT_PAGER` environment variables (the latter takes precedence) or use the `--pager` option. To disable  the pager permanently, set `--paging=never`. \\\n  \\\n  Possible values: `auto`, `never`, `always`, `one-by-one`.\n\n- `--bat-engine=\u003ccommand\u003e` \\\n  \\\n  Specify command for `bat`. By default use `BATRG_BAT` environment variables or `bat`.\n\n- `--rg-engine=\u003ccommand\u003e` \\\n  \\\n  Specify command for `rg`. By default use `BATRG_RG` environment variables or `rg`.\n\nAnother options are passed directly to `ripgrep` or `bat`.\n\n\n## Dependencies\n\n- `zsh`\n- `bat`\n- `rg`\n\n\n## Installation\n\nJust put `batrg` in a `PATH` folder and `completion/_batrg` in a completion folder.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathanpoelen%2Fbatrg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonathanpoelen%2Fbatrg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathanpoelen%2Fbatrg/lists"}