A minimalist, high-performance configuration for the lf terminal file manager.
- Image Previews: Ultra-fast Sixel rendering using
chafa. - Gnosis-Diff: Built-in TUI diff tool for comparing files (
gd). - PDF Support: Quick preview of PDF documents.
- Syntax Highlighting: Code previews with
bat. - Archive Management: List and extract multiple archive formats (zip, tar, 7z, rar).
- Clipboard Integration: Copy full file paths to system clipboard.
- Safe Trash: Integration with
trash-putto avoid accidental loss. - Quick Creation: Create folders and files on the fly.
| Key | Action |
|---|---|
n |
Create a new directory |
N |
Create a new file |
X |
Extract archive |
Y |
Copy full path to clipboard |
o |
Open with system default |
D |
Move to trash |
gd |
Compare marked file with current file (Gnosis-Diff) |
e |
Edit with $EDITOR |
. |
Toggle hidden files |
f |
Jump to file/folder (fzf) |
# Clone the repo
git clone https://github.com/sarkoidose/lf.git ~/.config/lf
# Ensure preview scripts are executable
chmod +x ~/.config/lf/*.shchafa(images)bat(syntax)wl-copy(clipboard)trash-cli(trash)poppler(pdf)fzf(search)
Maintained by sarkoidose.