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.
- Search inside all text based files
- Most relevant search at the top
- Highlights the terms that were searched for
- Supports
docxfiles - Respects
.gitignorefiles
brew tap larscom/tap
brew install larscom/tap/ranked_searchercurl -fsSL https://github.com/larscom/ranked-searcher/tree/main/scripts/install.sh | shcargo install ranked-searcherOr simply download the binary for your platform: https://github.com/larscom/ranked-searcher/releases
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/dirExample output:
