crpreview v0.2.0

Preview script for the lf file manager

crpreview

GH Build

Previews files and directories in the lf file manager on macOS.

Features

crpreview can preview the following formats:

File type Tool
archives[^1] libarchive
markdown glow
images chafa
pdf qlmanage
text bat
directories eza

[^1]: Supported formats: tar, 7-zip, zip, bzip, bzip2, gunzip, xz, zstd, lzip, lrzip

Requirements

All of the above mentioned preview tools which you want to use.

Installation

Binary

Install directly from my brew tap:

$ brew install RisGar/tap/crpreview

From Source

$ make

Usage

Add 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.

Contributing

  1. Fork it (https://github.com/RisGar/crpreview/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request
Repository

crpreview

Owner
Statistic
  • 1
  • 0
  • 0
  • 0
  • 0
  • 15 days ago
  • April 26, 2023
License

European Union Public License 1.2

Links
Synced at

Sun, 24 Nov 2024 21:06:17 GMT

Languages