• Packages
  • Themes
  • Documentation
  • Blog
  • Discussions
Sign in

atom-codesearch

Super-fast search for code using different search engines: CodeSearch, ripgrep, ag, pt
antelle
1.4.0 1,613
5
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

Atom CodeSearch

Super-fast search for code using different search engines:

  • ripgrep (rg)
  • The Silver Searcher (ag)
  • The Platinum Searcher (pt)
  • Google CodeSearch (csearch)

You will find this package useful if searching across your code takes a lot of time. With CodeSearch, it's a couple of seconds.

Installation

  1. install this package
  2. install your preferred search engine:
  • ripgrep
  • The Silver Searcher
  • The Platinum Searcher
  • Google CodeSearch
    • install and configure Go:
    export GOROOT=/usr/local/go;
    export GOPATH=$HOME/go
    
    • download and build Google CodeSearch:
    go get github.com/sidiandi/codesearch/cmd/...
    
    Or, the original Google version: github.com/google/cmd/...

Usage

Mac: cmd-alt-shift-F
Windows, Linux: ctrl-alt-shift-F

Commands

Code Search: Toggle

Open Find with CodeSearch window

Code Search: Reindex Project

Reindex project files: there's no option to auto reindex at the moment.

Index management

If you're using Google CodeSearch, please use cindex to purge or manage your index.

Tips & Tricks

ripgrep

Useful opts:

--max-columns=1024 --type-not=svg

Google CodeSearch

There's a better version in this fork, it supports many options, like configurable exclusions, index path and so on, and provides binaries for all OS: https://github.com/sidiandi/codesearch Useful indexer opts for it:

-exclude .gitignore

Contributing

This package needs your help:

  • update index on file changes
  • better installation docs

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by