Previews files and directories in the lf file manager on macOS.
crpreview can preview the following formats:
| File type | Tool |
|---|---|
| archives1 | libarchive |
| markdown | glow |
| images | chafa |
qlmanage |
|
| text | bat |
| directories | eza |
All of the above mentioned preview tools which you want to use.
Install directly from my brew tap:
$ brew install RisGar/tap/crpreview$ makeAdd the following lines to your lfrc:
set previewer /path/to/crpreview/bin/crpreview
map i $ /path/to/crpreview/bin/crpreview $f | less -R
Make sure to install the required decompressors for libarchive to list archive contents.
- Fork it (https://github.com/RisGar/crpreview/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Footnotes
-
Supported formats:
tar,7-zip,zip,bzip,bzip2,gunzip,xz,zstd,lzip,lrzip↩