Code Monkey home page Code Monkey logo

codesearch's People

Contributors

coxley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

gorhamc

codesearch's Issues

Add formatting similar to `rg`

Filenames inline with code worked great at Facebook because paths were more predictable, and didn't need to include repo information. Files spread across repos just have a lot of duplicate paths that get spread out.

Add an option that can be set as default for rg style. Something like...

>cs foo bar baz
path/to/file.ext
70:  foo bar baz
71: baz qux

path/to/other/file.ext
69: foo bar
72: baz

This has the added benefit of allowing the header to be the full URL without impacting legibility.

Print message to stderr if result count == --limit

I often find myself doing a search, re-running the search with --count to see if it's the full picture or not, and then running again with an increased --limit.

Automatic paging could be a solution, but GitHub is quick to rate-limit. And much of the time I just want a quick look vs. exhaustive. Letting the user know that there could be more in yellow text is a decent trade-off.

Gitlab support

Hi Codey, this project is amazing! Missing BigGrep so much.. Do you have any plans to add GitLab support as well?

Thank you

Create program for file-only searching: cf

Facebook had a few variants for BigGrep tools. The main two I remember are:

  • fbgs (search)
  • fbgf (file)

Currently we're discarding filename matches because we're focused on source code. But I just hit a few snags where I have only a filename to match on so... yeah.

Ugh

Good code, but what an awful dev.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.