Show HN: Zeitgrep – ripgrep, but sorted by edit stats in Git history

github.com

2 points by kantord 14 hours ago

Zeitgrep lets you serach frecently‑edited lines of code in your Git repository, i. e. the results are ranked by how often and how recently a file has changed.

This is achieved by analyzing your Git commit history, and finding hot-spots in your codebase.

Use case ideas: - improve "live-grep" experience by prioritizing "trending" results (this is my use case, I use it in telescope.nvim) - find certain patterns, such as TODO comments, specifically in stale code - attempt to feed the most relevant results to an LLM or AI agent when the context window does not allow fitting your entire codebase into the context window - before doing find-and-replace across files, look at the "least expected" examples to see how what would be replaced in areas of the codebase people in the team rarely think about