mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-11-24 13:53:07 +01:00
Image previews for lf file manager
doc | ||
embed | ||
prev | ||
src | ||
.gitignore | ||
clear.sh | ||
ctpvclear | ||
end.sh | ||
helpers.sh | ||
LICENSE | ||
Makefile | ||
previews.h | ||
README.md |
ctpv
Terminal previewer
ctpv is an utility for previewing various files (including images with Überzug).
ctpv is a remake of awesome program named stpv but it's written in C. stpv worked perfectly for me, except it was kinda sluggish because it was written in POSIX shell. ctpv is an attempt to make a faster version of stpv and add some new features.
Originally it was made for lf but I assume it should not be hard to integrate ctpv into other programs (if they support external programs for providing previews like lf, of course).
Installation
Manual
git clone https://github.com/NikitaIvanovV/ctpv
cd ctpv
sudo make install
Uninstall with sudo make uninstall
Integration
lf file manager
Add these lines to your lf config
(usually located at ~/.config/lf/lfrc
):
set previewer ctpv
set cleaner ctpvclear
&ctpv -s $id
cmd on-quit $ctpv -e $id
Documentation
Full documentation for the program can be found here: https://nikitaivanovv.github.io/ctpv/