Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 1.32 KB

File metadata and controls

53 lines (38 loc) · 1.32 KB

Ranked Searcher

Crates.io Version Crates.io Downloads (recent) Crates.io License

Search inside text files showing the most relevant search at the top, based on the well known tf-idf formula. It’s pretty fast, considering the fact it has to gather all the files first and then rank them accordingly.

✨ Features

  • Search inside all text based files
  • Most relevant search at the top
  • Highlights the terms that were searched for
  • Supports docx files
  • Respects .gitignore files

🚀 Installation

🍺 Homebrew

brew tap larscom/tap

brew install larscom/tap/ranked_searcher

📟 Shell

curl -fsSL https://github.com/larscom/ranked-searcher/tree/main/scripts/install.sh | sh

📦 Cargo

cargo install ranked-searcher

Or simply download the binary for your platform: https://github.com/larscom/ranked-searcher/releases

🎯 Usage

Search in current directory for files containing the terms hello world

$ ranked-searcher "hello world"

Or search inside a given directory (optional)

$ ranked-searcher "hello world" ./some/dir

Example output:

Example Output