Submit a product

tgrep

Regex code search that uses a trigram index to skip unlikely files

ToolWindowsOpen source

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.

All alternatives

ripgrep

command-line search tool that finds regex matches across directory trees

ToolDeveloper Tools··Open source·71k

television

command-line fuzzy finder with channels for files, text and shell history

ToolDeveloper Tools··Open source·6.5k

gron

Command-line tool that flattens JSON into greppable lines

ToolDeveloper Tools··Open source·15k

fzf

Command-line fuzzy finder for lists of files, history and any text

ToolDeveloper Tools··Open source·85k

lazygit

Terminal UI for running git commands with keyboard shortcuts

ToolDeveloper Tools··Open source·84k

Alacritty

GPU-accelerated terminal emulator for Linux, macOS, Windows and BSD

ToolDeveloper Tools··Open source·66k

bat

command-line file viewer with syntax highlighting and git integration

ToolDeveloper Tools··Open source·62k

GitHub CLI

Command line tool for working with GitHub from the terminal

ToolDeveloper Tools··Open source·47k