tgrep is a command-line search tool for finding regular expression matches in large source code trees. It is aimed at developers and teams who search big repositories and find plain grep too slow. Before searching, it builds a trigram index, so each query only opens files that could contain a match.
A background server watches for file changes so the index stays current between searches. It uses a client and server design, and GitHub Copilot CLI uses it for grep searches. The code is public under the MIT license and the product runs on Windows. Microsoft publishes it.
Alternatives to tgrep
Products that do a similar job in Developer Tools.
ripgrep
command-line search tool that finds regex matches across directory trees
television
command-line fuzzy finder with channels for files, text and shell history
gron
Command-line tool that flattens JSON into greppable lines
fzf
Command-line fuzzy finder for lists of files, history and any text
lazygit
Terminal UI for running git commands with keyboard shortcuts
Alacritty
GPU-accelerated terminal emulator for Linux, macOS, Windows and BSD
bat
command-line file viewer with syntax highlighting and git integration
GitHub CLI
Command line tool for working with GitHub from the terminal