#2493·lf

Feature request: support for hidden files and dirs dimming

Author: slavshikCreated Apr 7, 2026Updated May 2, 2026
Labelsenhancement

Problem

There is currently no way to assign a color to all dotfiles/dotfolders with a single pattern. lf's color lookup constructs keys from the filename (e.g. .gitconfig*, *.gitconfig) and does exact map lookups — so a pattern like .* is never generated as a lookup key for files like .gitconfig or .git.

The only workaround is listing every dotfile by name explicitly, which doesn't scale.

Proposed solution

Treat .* and .*/ as special wildcard patterns matching any file or folder whose name starts with .:

.*/     2;33    # dotfolders — dim yellow
.*      2;37    # dotfiles   — dim white

Priority would follow the existing hierarchy — explicit name patterns and special type codes (ln, ex, etc.) would still take precedence.

Image

Implementation

A minimal implementation is proposed in PR #2492.