+
Skip to content

ajitesh123/codesearch

Repository files navigation

CodeSearch 🔍

A fast and efficient code search tool powered by Tantivy, allowing you to search through your codebase with lightning speed ⚡

✨ Features

  • 🚀 Fast full-text search in your codebase
  • 🎯 Language-aware code tokenization using Pygments
  • 📁 Support for multiple file extensions
  • 👀 Preview of search results
  • ⚙️ Configurable search options
  • 🔄 Automatic retry mechanism for robust indexing
  • 🚦 Concurrent processing for better performance

🛠️ Installation

Using pip

pip install codesearch

Using uv (recommended)

  1. Install uv first:
curl -fsSL https://get.uvm.dev | bash
# or
brew install uv
  1. Create and activate a virtual environment:
uv venv
source .venv/bin/activate  # On Unix
# or
.venv\Scripts\activate     # On Windows
  1. Install the package:
uv pip install codesearch

🚀 Usage

Index your code:

codesearch --index /path/to/your/code --extensions py,js,ts

Search in your indexed code:

codesearch --search "your search query"

📋 Requirements

  • Python 3.11+
  • Tantivy
  • Loguru

📄 License

MIT License

About

Lightning fast Codesearch powered by Tantivy ⚡

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载