No results
Table of Contents
This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
lf
lf is a terminal file manager. This folder contains the main config (lfrc) and the preview script (previewer) used for inline previews.
What the config does
lfrc- Preview – Uses
~/.config/lf/previewerfor previews. - Behaviour – Hidden files, ignore case, icons, sixel support; custom ruler format with colours.
- Commands –
mkdir(prompt for name),mkfile(prompt then open in$EDITOR),setwallpaper,unarchive(zip, rar, tar.*, 7z),trash(trashy),open(text → nvim, else xdg-open),on-select(exa stats),fzf_jump(Ctrl+F),fzf_search(Ctrl+G, ripgrep + fzf),z-jump(Z, zb, zz with z.lua). - Maps – Cut/copy/paste (x/y/p), trash (dd), restore (u, dr), empty trash (de), open (Enter), reload (R), mkfile/mkdir (mf/md), setwallpaper (bg), clear (C); quick jumps (gc=config, gd=downloads, gp=pictures, etc.); co=VSCodium, cf=dotbare; au=unarchive, ae=wine.
- Preview – Uses
previewer- For images: runs
chafawith sixel output (-f sixel) for inline image preview; exits with 1 so lf treats it as “preview set”. - For other files: falls back to default
previewer(e.g.lessor your system preview script).
- For images: runs
How to use it
- Install lf and optional tools:
chafa(image preview),fzf,ripgrep,trashy,exa,z.lua(if you use z-jump). - Symlink or copy this folder to
~/.config/lf/. - Ensure
previeweris executable:chmod +x ~/.config/lf/previewer. - Run
lf. Use?for help. Key bindings: Enter = open, dd = trash, x/y/p = cut/copy/paste, Ctrl+F = fzf jump, Ctrl+G = search in files, Z/zb/zz = z-jump.
File reference
| File | Purpose |
|---|---|
lfrc |
Options, commands, and key bindings |
previewer |
Image preview via chafa/sixel; fallback for others |