Skip to content

A blazingly fast file search tool written in Rust that helps you find text patterns in your codebase with ease. Features: Lightning-quick search performance, Support for regex patterns, Recursive directory scanning, Clean, intuitive output formatting, Perfect for developers who need to quickly search through large codebases!

License

Notifications You must be signed in to change notification settings

maty7253/rusty-scout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔍 Rusty Scout

A blazingly fast file search tool written in Rust that helps you find text patterns in your codebase with ease.

Features

  • 🚀 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

Installation

From Source

# 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 .

Usage

# 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

Command Line Options

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

Examples

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

Development

Prerequisites

  • Rust 1.70 or higher
  • Cargo

Building

cargo build --release

Running Tests

cargo test

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Built with Rust
  • Uses clap for CLI argument parsing
  • Uses rayon for parallel processing
  • Uses regex for pattern matching

About

A blazingly fast file search tool written in Rust that helps you find text patterns in your codebase with ease. Features: Lightning-quick search performance, Support for regex patterns, Recursive directory scanning, Clean, intuitive output formatting, Perfect for developers who need to quickly search through large codebases!

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages