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.
Unsorted grep results (
rg def | head
)
|
|---|
zeitgrep results (
zg def | head
)
|
|---|
- Ripgrep‑style regex search over your Git repository
- Results ranked by frecency using the
frecenfilelibrary. - Scalable to large repositories
cargo install zeitgrepzg {regular expression}To configure telescope.nvim to use zeitgrep for live grep, use the following:
require("telescope").setup {
defaults = {
vimgrep_arguments = {
"zg",
"--column",
"--color=never",
},
},
}zg TODO --sort=asc