Skip to content

Zoekt

Install

pamac install zoekt ctags

Usage

Index

Index a single git repo:

zoekt-git-index -index ~/.zoekt/ .

Index recursively

See Synchronizing local git repos

Install zoekt-local-sync:

go install github.com/sourcegraph/zoekt/cmd/zoekt-local-sync@latest

Test indexing:

zoekt-local-sync -index ~/.zoekt/work ~/git

Index:

zoekt-local-sync -index ~/.zoekt/work -f ~/git

Examples:

Search all READMEs for the case-insensitive string todo (-r shows the path to the repo):

zoekt -r 'f:README.md TODO'

Search for python scripts:

zoekt -r 'lang:python'