File Filtering Filtering in lla
lla's filtering system helps you quickly locate files using patterns, types, and logical combinations. Whether you need simple text matching or complex search criteria, lla provides intuitive tools to narrow down your results.
Find files using simple text patterns:
lla -f "test" # Match files containing "test"
lla -f "test" -c # Case-sensitive search
lla -f ".rs" # Find by extension
lla -f "test,spec" # Find test OR spec
lla -f "+test,api" # Find test AND api
lla -f "regex:^test.*\.rs$" # Rust test files
lla -f "regex:\d{4}" # Files with 4-digit numbers
lla -f "glob:*.{rs,toml}" # Rust and TOML files
lla -f "glob:test_*" # Test-prefixed files
lla --dirs-only # Directories
lla --files-only # Regular files
lla --symlinks-only # Symbolic links
lla --dotfiles-only # Hidden files/directories
lla --no-dirs # No directories
lla --no-files # No regular files
lla --no-symlinks # No symbolic links
lla --no-dotfiles # No hidden files
Craft precise searches with logical operators:
lla -f "test AND .rs" # Test-related Rust files
lla -f "test OR spec" # Test or spec files
lla -f "NOT test" # Files without "test"
lla -f "test XOR spec" # Test or spec (not both)
Mix filters for precise results:
# Hidden directories only
lla --dirs-only --dotfiles-only
# Visible files only
lla --files-only --no-dotfiles
# Deep test file search
lla -R -f "test" -d 2