Thanks to visit codestin.com
Credit goes to github.com

Skip to content
 
 

Latest commit

 

History

136 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

55 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages