An lf wrapper, with built-in previews and on-exit directory changing.

lfp is a simple wrapper for the lf file manager, with built-in file, image, and video previews, as well as on-exit directory changing.

The program makes use of ueberzug to preview images, documents, and video thumbnails. Preview behavior can be altered by editing the scope file.

Version: 4.1.1


previews

Usage:

Run lfp. Optionally, a startup directory can be specified by a second argument. By default, lfp will launch in your current working directory. Icons for relative file types can be changed by editing the lfp-icons file in '/usr/share/lfp/lfp-icons'.

CD on exit:

For on-exit directory changing, add the following line to your bash/zshrc:

source '/usr/share/lfp/lfpcd'
    

LFP OCR:

LFP OCR is a simple OCR script that uses tesseract to extract text from images. It can be used as a standalone script, or as a lfp action. All detected text is copied to your clipboard.

OCR

Installation

Arch Linux

lfp is available in the AUR as lfp or lfp-git

Manual Installation

tmp=$(mktemp -d);
    git clone https://gitlab.com/a4to/lfp.git ${tmp} &&
    cd ${tmp} && sudo make clean install && cd - &&
    rm -rf ${tmp} >/dev/null 2>&1 || true
    

To uninstall lfp:

sudo make uninstall
    

Prerequisites:

Optional Dependencies:

Keybindings

Navigation:

Main Features and Functions:

NodeManager:

The NodeManager function provides various actions to manage a Node.js project, including:

NodeManager

PyManager:

The PyManager function provides various actions to manage a Python project, including:

PyManager

Additional Actions and Features:

And many more.

File Type Icons:

fileTypes