1 lf
Luca Matteo Spoljarevic edited this page 2026-02-27 21:44:07 +01:00
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/previewer for 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.
  • previewer
    • For images: runs chafa with 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. less or your system preview script).

How to use it

  1. Install lf and optional tools: chafa (image preview), fzf, ripgrep, trashy, exa, z.lua (if you use z-jump).
  2. Symlink or copy this folder to ~/.config/lf/.
  3. Ensure previewer is executable: chmod +x ~/.config/lf/previewer.
  4. 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