{"id":15713626,"url":"https://github.com/risgar/crpreview","last_synced_at":"2025-10-29T01:04:29.726Z","repository":{"id":157122523,"uuid":"633051455","full_name":"RisGar/crpreview","owner":"RisGar","description":"Preview script for the lf file manager","archived":false,"fork":false,"pushed_at":"2024-11-09T17:02:15.000Z","size":68,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T18:46:54.234Z","etag":null,"topics":["chafa","crystal","crystal-lang","imagemagick","lf","terminal-file-manager"],"latest_commit_sha":null,"homepage":"https://risgar.github.io/crpreview/","language":"Crystal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"eupl-1.2","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RisGar.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}},"created_at":"2023-04-26T17:15:38.000Z","updated_at":"2024-11-09T17:02:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"1b2221aa-8c0c-4a38-8949-097dd513712b","html_url":"https://github.com/RisGar/crpreview","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RisGar%2Fcrpreview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RisGar%2Fcrpreview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RisGar%2Fcrpreview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RisGar%2Fcrpreview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RisGar","download_url":"https://codeload.github.com/RisGar/crpreview/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246365638,"owners_count":20765546,"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":["chafa","crystal","crystal-lang","imagemagick","lf","terminal-file-manager"],"created_at":"2024-10-03T21:32:32.524Z","updated_at":"2025-10-07T22:05:09.712Z","avatar_url":"https://github.com/RisGar.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# crpreview\n\n[![GH Build](https://github.com/RisGar/crpreview/actions/workflows/make.yml/badge.svg)](https://github.com/RisGar/crpreview/actions/workflows/make.yml)\n\nPreviews files and directories in the [lf file manager](https://github.com/gokcehan/lf) on macOS.\n\n## Features\n\n`crpreview` can preview the following formats:\n\n| File type    | Tool         |\n| ------------ | ------------ |\n| archives[^1] | `libarchive` |\n| markdown     | `glow`       |\n| images       | `chafa`      |\n| pdf          | `qlmanage`   |\n| text         | `bat`        |\n| directories  | `eza`        |\n\n[^1]: Supported formats: `tar`, `7-zip`, `zip`, `bzip`, `bzip2`, `gunzip`, `xz`, `zstd`, `lzip`, `lrzip`\n\n## Requirements\n\nAll of the above mentioned preview tools which you want to use.\n\n## Installation\n\n### Binary\n\nInstall directly from my brew tap:\n\n```console\n$ brew install RisGar/tap/crpreview\n```\n\n### From Source\n\n```console\n$ make\n```\n\n## Usage\n\nAdd the following lines to your `lfrc`:\n\n```conf\nset previewer /path/to/crpreview/bin/crpreview\nmap i $ /path/to/crpreview/bin/crpreview $f | less -R\n```\n\nMake sure to install the required decompressors for `libarchive` to list archive contents.\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/RisGar/crpreview/fork\u003e)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frisgar%2Fcrpreview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frisgar%2Fcrpreview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frisgar%2Fcrpreview/lists"}