A blazingly fast file search tool written in Rust that helps you find text patterns in your codebase with ease.
- 🚀 Blazingly Fast: Utilizes parallel processing for maximum performance
- 🎯 Smart Search: Supports regex patterns and case-insensitive search
- 🎨 Syntax Highlighting: Colorized output for better readability
- 📁 Git-Aware: Respects
.gitignore
rules - 🔧 Flexible: Filter by file extensions and customize search patterns
- 💡 User-Friendly: Progress indicators and clear search results
# Clone the repository
git clone https://github.com/maty7253/rusty-scout.git
# Navigate to the project directory
cd rusty-scout
# Build and install
cargo install --path .
# Basic search
rusty-scout -p "pattern" -d "/path/to/search"
# Search with regex
rusty-scout -p "^Hello.*world$" -d "/path/to/search" -r
# Search specific file types
rusty-scout -p "TODO" -d "/path/to/search" -e "rs,txt,md"
# Case-insensitive search
rusty-scout -p "ERROR" -d "/path/to/search" -i
Option | Description |
---|---|
-d, --directory |
Directory to search in (default: current directory) |
-p, --pattern |
Pattern to search for |
-e, --extensions |
File extensions to search (comma-separated) |
-r, --regex |
Use regex for pattern matching |
-i, --ignore-case |
Ignore case when searching |
Search for a pattern in all files:
rusty-scout -p "TODO" -d "./src"
Search only in Rust files:
rusty-scout -p "unwrap()" -d "./src" -e "rs"
Case-insensitive regex search:
rusty-scout -p "error.*failed" -d "./logs" -r -i
- Rust 1.70 or higher
- Cargo
cargo build --release
cargo test
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.