{"id":39443521,"url":"https://github.com/lpnh/fr.yazi","last_synced_at":"2026-01-18T04:23:02.572Z","repository":{"id":233201678,"uuid":"785444807","full_name":"lpnh/fr.yazi","owner":"lpnh","description":"a Yazi plugin that integrates `fzf` with `bat` preview for `rg` search and `rga` preview for `rga` search","archived":false,"fork":false,"pushed_at":"2026-01-02T11:20:09.000Z","size":66,"stargazers_count":41,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-08T12:47:31.384Z","etag":null,"topics":["fzf","ripgrep","yazi","yazi-plugin"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"DreamMaoMao/fg.yazi","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lpnh.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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-04-11T22:30:15.000Z","updated_at":"2026-01-02T11:14:06.000Z","dependencies_parsed_at":"2025-07-12T20:27:23.592Z","dependency_job_id":"7ea29c44-0ef6-4309-8fc7-c269106c5025","html_url":"https://github.com/lpnh/fr.yazi","commit_stats":null,"previous_names":["lpnh/fg.yazi","lpnh/fr.yazi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lpnh/fr.yazi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpnh%2Ffr.yazi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpnh%2Ffr.yazi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpnh%2Ffr.yazi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpnh%2Ffr.yazi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lpnh","download_url":"https://codeload.github.com/lpnh/fr.yazi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpnh%2Ffr.yazi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28529504,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["fzf","ripgrep","yazi","yazi-plugin"],"created_at":"2026-01-18T04:23:02.497Z","updated_at":"2026-01-18T04:23:02.556Z","avatar_url":"https://github.com/lpnh.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fr.yazi\n\na Yazi plugin that integrates `fzf` with `bat` preview for `rg` search and\n`rga` preview for `rga` search\n\n**supports**: `bash`, `fish`, and `zsh`\n\n## dependencies\n\n- [bat](https://github.com/sharkdp/bat)\n- [fzf](https://junegunn.github.io/fzf/)\n- [ripgrep](https://github.com/BurntSushi/ripgrep)\n- [ripgrep-all](https://github.com/phiresky/ripgrep-all) (optional)\n\n## installation\n\n```sh\nya pkg add lpnh/fr\n```\n\n## usage\n\n### plugin args\n\nthis plugin supports two arguments:\n\n- `rg`:\n   - `rg` search\n   - `bat` preview\n   - `rg` match (default)\n   - `fzf` match (alternative)\n\n- `rga`:\n   - `rga` search\n   - `rga` preview\n   - `rga` match\n\nbelow is an example of how to configure both in the\n`~/.config/yazi/keymap.toml` file:\n\n```toml\n[[mgr.prepend_keymap]]\non = [\"f\", \"r\"]\nrun = \"plugin fr rg\"\ndesc = \"Search file by content (rg)\"\n\n[[mgr.prepend_keymap]]\non = [\"f\", \"a\"]\nrun = \"plugin fr rga\"\ndesc = \"Search file by content (rga)\"\n```\n\n### fzf binds\n\nthis plugin provides the following custom `fzf` keybindings:\n\n- `ctrl-r`: reload the search\n- `ctrl-s`: toggle the matching method (rg, fzf)\n- `ctrl-]`: toggle the preview window size (66%, 80%)\n- `ctrl-\\`: toggle the preview window position (top, right)\n\n## customization\n\n### color themes\n\nyou can customize the default `fzf` colors using the `FZF_DEFAULT_OPTS`\nenvironment variable. for an example, check out [Catppuccin's fzf\nrepo](https://github.com/catppuccin/fzf?tab=readme-ov-file#usage)\n\nmore examples of color themes can be found in the [fzf\ndocumentation](https://github.com/junegunn/fzf/blob/master/ADVANCED.md#color-themes)\n\n### advanced\n\nfor those seeking further customization, you can tweak all the integrated tools\nused by this plugin in your `~/.config/yazi/init.lua` file. simply pass a table\nto the `setup` function with any of the following fields and their respectives\noptions:\n\n```lua\nrequire(\"fr\"):setup({\n    fzf,\n    rg,\n    bat,\n    rga,\n    rga_preview,\n})\n```\n\nall fields are optional and accept either a string or a table of strings\ncontaining command-line options.\n\nexample:\n\n```lua\nrequire(\"fr\"):setup {\n    fzf = [[--info-command='echo -e \"$FZF_INFO 💛\"' --no-scrollbar]],\n    rg = \"--colors 'line:fg:red' --colors 'match:style:nobold'\",\n    bat = \"--style 'header,grid'\",\n    rga = {\n        \"--follow\",\n        \"--hidden\",\n        \"--no-ignore\",\n        \"--glob\",\n        \"'!.git'\",\n        \"--glob\",\n        \"!'.venv'\",\n        \"--glob\",\n        \"'!node_modules'\",\n        \"--glob\",\n        \"'!.history'\",\n        \"--glob\",\n        \"'!.Rproj.user'\",\n        \"--glob\",\n        \"'!.ipynb_checkpoints'\",\n    },\n    rga_preview = {\n        \"--colors 'line:fg:red'\"\n            .. \" --colors 'match:fg:blue'\"\n            .. \" --colors 'match:bg:black'\"\n            .. \" --colors 'match:style:nobold'\",\n    },\n}\n```\n\nalmost everything from interface elements to search filters can be customized —\nyou just need to find the right flag. that's the hard part. lol\n\n## acknowledgments\n\n@vvatikiotis for the `rga`\n[integration](https://github.com/lpnh/fr.yazi/pull/1)\n\nthis is a derivative of @DreamMaoMao's `fg.yazi` plugin. consider using the\noriginal one instead; you can find it at\n\u003chttps://gitee.com/DreamMaoMao/fg.yazi\u003e, with a mirror available at\n\u003chttps://github.com/DreamMaoMao/fg.yazi\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpnh%2Ffr.yazi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flpnh%2Ffr.yazi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpnh%2Ffr.yazi/lists"}