Skip to content

junkblocker/codesearch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

136 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Search

A fork of Google Code Search — fast regular expression search over large codebases using a trigram index. Extended with match limits, symlink control, file exclusion, brute-force mode, context lines, a web UI, and a 64-bit index format.

Quick Start

# Install (Go 1.16+)
go install github.com/junkblocker/codesearch/cmd/...@latest

# Index your code
cindex $HOME/src /usr/include

# Search
csearch 'func.*Open'

Build

make all        # lint, vet, test, build, install
make test       # tests with race detection
make release    # cross-compile for all platforms

Binaries

Command Purpose
cindex Build/update the trigram index
csearch Search indexed files by regexp
cgrep Direct regexp grep (no index)
csweb Web search UI (localhost:2473)

Documentation

Full structured documentation is in the sibling codesearch-docs repository.

Releases

github.com/junkblocker/codesearch/releases

License

BSD-style. See LICENSE.

Background

Regular Expression Matching with a Trigram Index by Russ Cox.

About

Fork of Google codesearch with more options

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Go 97.1%
  • Makefile 2.0%
  • Other 0.9%