Skip to content

larscom/ranked-searcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Search inside text files using tf-idf formula, showing most relevant search at the top

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •