File Filtering
Filtering in lla
Finding Your Files
Use patterns, types, and logic to filter results.
Pattern Matching
Basic Search
Simple text patterns:
lla -f "test" # Match files containing "test"
lla -f "test" -c # Case-sensitive search
lla -f ".rs" # Find by extension
Advanced Patterns
Text Combinations
lla -f "test,spec" # Find test OR spec
lla -f "+test,api" # Find test AND api
Regular Expressions
lla -f "regex:^test.*\.rs$" # Rust test files
lla -f "regex:\d{4}" # Files with 4-digit numbers
Glob Patterns
lla -f "glob:*.{rs,toml}" # Rust and TOML files
lla -f "glob:test_*" # Test-prefixed files
File Type Filters
Show Specific Types
lla --dirs-only # Directories
lla --files-only # Regular files
lla --symlinks-only # Symbolic links
lla --dotfiles-only # Hidden files/directories
Hide Specific Types
lla --no-dirs # No directories
lla --no-files # No regular files
lla --no-symlinks # No symbolic links
lla --no-dotfiles # No hidden files
Logic Operations
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)
Combined Techniques
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