Overview
Find files with intelligent filtering and gitignore support. Produces compact tree-style output instead of verbose line-by-line results.Syntax
Options
Supports both RTK-specific and nativefind syntax:
Glob pattern to match (e.g.,
*.rs, test_*.py)Directory to search in
Native find: match filename pattern
Native find: file type (f=file, d=directory)
Native find: maximum search depth
Examples
Find by Pattern
Find with Native Syntax
Limit Depth
Features
- Gitignore-aware: Automatically skips files in
.gitignore - Grouped output: Files organized by directory
- Truncation: Large result sets show summary with file count
- Dual syntax: Supports both simple glob patterns and native find flags
Token Savings
Average token reduction: 80% For large projects with 1000+ matches, shows first 50 files + count summary instead of full list.Related Commands
Implementation
Source:src/find_cmd.rs
Uses ignore crate for gitignore support and intelligent file traversal.