File Listing Processor

August 10, 2026 ยท View on GitHub

File: src/processors/file_listing.py | Priority: 50 | Name: file_listing

Handles directory listing commands.

Supported Commands

ls, find, tree, dir, exa, eza.

Strategy

CommandStrategy
ls> 20 items: grouped by extension with counts
ls -lStrips permissions, owner, group, date. Keeps type indicator (directory /, symlink), size (human-readable), and name. > 60 items: truncated
exa / ezaSame as ls
find> 30 results: grouped by directory. > 20 files per directory: extension breakdown
tree> 50 lines: middle truncated, summary line (N directories, M files) preserved

Configuration

ParameterDefaultDescription
ls_compact_threshold20Items before ls compaction
find_compact_threshold30Results before find compaction
tree_compact_threshold50Lines before tree truncation