Image previews for lf file manager
Go to file
Nikita Ivanov 694ecd495a
Minor
2022-06-15 07:15:34 +05:00
doc Minor 2022-06-14 17:19:18 +05:00
embed Minor 2022-05-24 01:03:13 +05:00
prev Add more built-in previews 2022-06-12 22:28:50 +05:00
src Minor 2022-06-13 11:20:51 +05:00
.gitignore Initial commit 2022-05-22 12:56:26 +05:00
clear.sh Set $fifo variable when ctpv is started 2022-05-31 22:59:43 +05:00
ctpvclear ctpvclear: add option to pass id as argument 2022-05-29 21:40:11 +05:00
end.sh Set $fifo variable when ctpv is started 2022-05-31 22:59:43 +05:00
helpers.sh Rename some previews 2022-06-12 12:57:20 +05:00
LICENSE Initial commit 2022-05-22 12:56:26 +05:00
Makefile Install man page 2022-06-14 17:50:15 +05:00
previews.h Add more built-in previews 2022-06-12 22:28:50 +05:00
README.md Minor 2022-06-15 07:15:34 +05:00

ctpv

Terminal previewer

showcase


ctpv is a terminal previewer utility that supports a variety of built-in previews (including image previews 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/