22 releases (7 breaking)
Uses new Rust 2024
new 0.8.0 | May 18, 2025 |
---|---|
0.7.3 | May 11, 2025 |
0.6.0 | May 6, 2025 |
0.5.1 | May 5, 2025 |
0.1.10 | Apr 29, 2025 |
#72 in Text processing
1,718 downloads per month
21KB
419 lines
zeitgrep
Search frecently‑edited lines of code in your Git repository, ranked by how often and how recently a file has changed.
zeitgrep is a grep-like command that allows you to search files in a Git repository. The results are sorted by a frecency score generate by frecenfile. It uses ripgrep as a search backend.
Usage example
Unsorted grep results (
rg def | head
)
|
---|
zeitgrep results (
zg def | head
)
|
---|
✨ Features
- Ripgrep‑style regex search over your Git repository
- Results ranked by frecency using the
frecenfile
library. - Scalable to large repositories
📦 Installation
cargo install zeitgrep
🚀 Usage
zg {regular expression}
🧑🍳 Recipes
Live grep in Neovim using telescope.nvim
To configure telescope.nvim to use zeitgrep
for live grep, use the following:
require("telescope").setup {
defaults = {
vimgrep_arguments = {
"zg",
"--column",
"--color=never",
},
},
}
Find stale TODO
zg TODO --sort=asc
Dependencies
~22–32MB
~609K SLoC