Regexp queries, directories, OpenID Connect, and more updates to Sourcegraph

Quinn Slack

We've been hard at work on improvements to Sourcegraph to give you great code search on your company's code. Here's what's new and improved:

Changelog-RegExpSearch

Code search:

  • There is now a directory listing view with the last Git commit for each subdirectory and file.
  • Query terms are now interpreted as regexps, not strings (for example, this query would match abc and abd: ab[cd]). The regexp: operator is deprecated. Surround a term in double quotes to search for exact (non-regexp) matches.
  • The suggestion menu below the search box now displays matching directories (in addition to files and repositories).
  • The search documentation is now linked from “Help” next to the query input.
  • Fixed the revision switcher for repositories with != 3 path components in their name.
  • Clicking on an item in the query suggestions menu now navigates to that item. Previously you needed to use the keyboard.
  • The ?q=&sq= URL params no longer follow you everywhere.
  • Various bugs were fixed in the editor integrations for code search

Self-hosted Sourcegraph instances:

  • SSO sign-in via OpenID Connect grants the user the same abilities as the native sign-in. Read the installation documentation for configuration instructions.

On Sourcegraph.com:

  • The “All repositories” scope is now available. You still need to specify repo: and/or repogroup: filters to narrow the search to 30 or fewer repositories. (Example: repo:github.com/myorg/myquery).

Want to run a self-hosted instance of Sourcegraph with your own private code? Install Sourcegraph with a single command.

About the author

Quinn Slack is the CEO and co-founder of Sourcegraph, the code intelligence platform for dev teams and making coding more accessible to more people. Prior to Sourcegraph, Quinn co-founded Blend Labs, an enterprise technology company dedicated to improving home lending and was an egineer at Palantir, where he created a technology platform to help two of the top five U.S. banks recover from the housing crisis. Quinn has a BS in Computer Science from Stanford, you can chat with him on Twitter @sqs.

Get Cody, the AI coding assistant

Cody makes it easy to write, fix, and maintain code.