cs
livegrep
cs | livegrep | |
---|---|---|
9 | 11 | |
521 | 2,011 | |
- | 0.5% | |
7.5 | 5.2 | |
8 months ago | 3 months ago | |
Go | C++ | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cs
-
Ripgrep is faster than {grep, ag, Git grep, ucg, pt, sift}
That’s one of the reasons I made this actually https://github.com/boyter/cs
I wanted and boolean syntax mixed with fzf instant search. It’s not as fast as ripgrep of course but it’s not solving the same problem.
- Sourcegraph is no longer Open Source
- codespelunker
- cs: command line codespelunker or code search written in Go
- codespelunker (cs) A command line search tool. Allows you to search over code or text files in the current directory either on the console, via a TUI or HTTP server, using some boolean queries or regular expressions.
- Show HN: Codespelunker a command line search tool
-
Lmgrep: Lucene-based grep-like utility
Neat. This is similar to a tool I have been working on (but need to finish off) as I saw the same issue.
Except rather than build an index I brute forced the search each time. For most repositories it’s fast enough even with ranking.
https://github.com/boyter/cs For those interested it’s still very WIP with noticeable issues in TUI mode.
-
Ask HN: What Are You Working On?
A few things.
An implementation of bitfunnel search in Go which I plan to put into searchcode.com at some point once I get all the issues resolved and if performance is acceptable
A command line search tool which brute forces with search ranking https://github.com/boyter/cs/ mostly for code but works pretty well for other things as well
Atlassian Confluence Cloud plugins. Mostly out of personal interest and because there appears to be a good marketplace to produce mostly passive income there.
livegrep
- Livegrep: Interactively Grep Source Code
-
Code Search Is Hard
If you ever leave you can use Livegrep, which was based on code-search work done at Google. I personally don't use it right now but it's great and will probably meet all your needs.
[0] https://github.com/livegrep/livegrep
- FLaNK Stack Weekly for 13 November 2023
-
Sourcegraph is no longer Open Source
[4] is not really a usable 'product'. Livegrep (https://github.com/livegrep/livegrep) was inspired by it and is very usable.
[3] used to be a Google open source project as well, but it fell out of maintenance, and Sourcegraph took it over. It powers most of the basic regex/literal search in Sourcegraph.
Mozilla's code is searchable in Searchfox (https://searchfox.org/) which uses the indexer from Livegrep, combined with their own Git indexer and language-specific cross reference databases.
OpenGrok (https://github.com/oracle/opengrok) is also rather well known, but I have found it to have a slightly worse UI than alternatives.
- What code search tools do you use at your job?
- Ack is a grep-like source code search tool
-
Are there any good full text searching tools? I need to search against a huge amount of source code. I'm using ripgrep. The problem is that every time I search, it has to read every file again, which is kind of slow. Is there a FT searching tool that is designed with source code searching in mind.
Yes, you want https://github.com/livegrep/livegrep
-
Facebook open sources Glean: a scalable code search and query engine
If you've not had to deal with a codebase that takes VSCode longer than a few minutes to index, then you're probably outside their initial target market. If you've not had to setup a hosted code search tool (eg livegrep https://github.com/livegrep/livegrep ) because there's just too much code,
- Sourcegraph: Why we're indexing the OSS universe
What are some alternatives?
git-peek - git repo to local editor instantly
Glean - System for collecting, deriving and working with facts about source code.
lucene-grep - Grep-like utility based on Lucene Monitor compiled with GraalVM native-image
linguist - Language Savant. If your repository's language is being reported incorrectly, send us a pull request!
ctoc - Count Tokens of Code (forked from gocloc)
sourcegraph - Code AI platform with Code Search & Cody
dcs - Debian Code Search (codesearch.debian.net) is a search engine that searches through all the 130 GB of open source software that is included in Debian. Supports regular expressions!
zoekt - Fast trigram based code search
sshs - Terminal user interface for SSH
codesearch - Fork of Google codesearch with more options
hound - Lightning fast code searching made easy