Busca offers a fast terminal search experience using a TUI interface powered by ripgrep. It combines case-insensitive searching with fuzzy matching for files, lines, and content, along with an intuitive preview panel to enhance navigation. Ideal for developers looking to streamline their workflow.
busca is a powerful terminal-based user interface (TUI) designed for fast searching, leveraging the capabilities of ripgrep. This tool enhances the search experience by utilizing a clean and efficient approach to navigate through complex codebases or any text data.
Key Features
- Case-Insensitive Source Search: Easily find terms with the
rgterm panel, allowing for quick and effective searches without worrying about case sensitivity. - Fuzzy Matching: Refine search results by applying fuzzy matching to filter matches based on file names, line numbers, and content, increasing the efficiency of your search process.
- Interactive Navigation: The preview panel allows users to navigate search results using keyboard shortcuts (
hjklor arrow keys) and to select text visually with thevcommand, enhancing the usability of the tool.
Requirements
To run busca, the following are necessary:
- Node.js (version 18 or higher is recommended)
- npm (Node package manager)
- ripgrep (
rg): This utility is essential for performing the search operations. - bat (optional): Including
batenables syntax-highlighted previews, enriching the viewing experience of code snippets.
Installation
For users needing the tool, several installation options make it easy to get started:
Install using Homebrew (macOS/Linux):
brew install ripgrep bat
Global Install via SSH:
npm install -g git+ssh://git@github.com/rokyed/busca.git
Global Install via HTTPS:
npm install -g github:rokyed/busca
Manual Installation:
git clone git@github.com:rokyed/busca.git
cd busca
npm install
npm link
Usage
To initiate busca, simply run:
busca
Or specify a path to search through:
busca /path/to/project
busca provides an efficient and user-friendly way to search through files directly from the terminal, making it an invaluable tool for developers and anyone who works with text files.
No comments yet.
Sign in to be the first to comment.