Overview
Proxy for thetree command with intelligent output filtering and compaction.
Syntax
Options
All nativetree flags are supported and passed through:
number
Descend only
level directories deepflag
List directories only
flag
Show all files (including hidden)
string
Exclude files matching pattern
string
List only files matching pattern
flag
Filter files according to .gitignore
Examples
Basic Tree
Limited Depth
Directories Only
Features
- Gitignore-aware: Automatically respects
.gitignorepatterns - Compact output: Removes excessive whitespace and formatting
- Token-optimized: Aggregates file counts, truncates deep trees
Token Savings
Average token reduction: 60%Related Commands
Implementation
Source:src/tree.rs