Overview
Proxy for thetree command with intelligent output filtering and compaction.
Syntax
Options
All nativetree flags are supported and passed through:
Descend only
level directories deepList directories only
Show all files (including hidden)
Exclude files matching pattern
List only files matching pattern
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