Sourcegraph logo

Sourcegraph

Search your code and 2M+ public repositories on Sourcegraph.
Robert Lin bobheadxi
468 Installs
Share
Overview README Version History

Commands 5

Search Code logo Search Code

Search your code and 2M+ public repositories.

Search Code logo Search Code

Search code on a self-hosted Sourcegraph instance.

Find Search Notebooks logo Find Search Notebooks

Browse search notebooks on Sourcegraph Cloud.

Find Search Notebooks logo Find Search Notebooks

Browse search notebooks on a self-hosted Sourcegraph instance.

Manage Batch Changes logo Manage Batch Changes

Manage batch changes on a self-hosted Sourcegraph instance.



sourcegraph

Sourcegraph for Raycast

Search code, browse notebooks, and manage batch changes on Sourcegraph with Raycast.

Install · Setup · Commands · Issues · Changelog · Contributing

search demo


Install

To get started, install Raycast and install the Sourcegraph extension from the Raycast extensions store.

Alternatively, you can install this extension from source.


Setup

This extension adds a variety of commands for interacting with Sourcegraph. Some configuration is required to use certain features, most notably the variants of each command for Sourcegraph Self-Hosted, though you can get started with Sourcegraph Cloud commands without any additional setup.

Sourcegraph Cloud

No setup is required to connect to Sourcegraph Cloud! To search your private code, configure your own search contexts, create your own search notebooks, and more, sign up for a Sourcegraph Cloud account!

Once you have an account, you can create an access token under the "Access tokens" tab in your user settings on Sourcegraph Cloud. Copy that access token to the "Sourcegraph Cloud: Access token" field in the Sourcegraph Raycast extension preferences to authenticate your search queries.

Sourcegraph Self-Hosted

To start searching code on a self-hosted Sourcegraph instance, you can set up access to any Sourcegraph instance by configuring the "Sourcegraph Self-Hosted: Instance URL" and "Sourcegraph Self-Hosted: Access token" fields in the Sourcegraph Raycast extension preferences. You can create an access token under the "Access tokens" tab in your user settings on your Sourcegraph instance.


Commands

Search Code

Get results as you type on code search over your code and 2M+ public repositories.

Search contexts

Search contexts allow you to narrow down your search to code you care about. To get started, you can try the public Sourcegraph Cloud contexts, or configure your own in your Sourcegraph Cloud account or self-hosted Sourcegraph instance's "Contexts" page!

The Sourcegraph Raycast extension allows you to set a default context for your searches in the "Search Code" command preferences.

search demo

Find Search Notebooks

Browse and preview search notebooks straight from Raycast. Notebooks enable powerful live – and persistent – documentation, shareable with your organization or the world.

To get started, you can try the public Sourcegraph Cloud notebooks, or configure your own from your Sourcegraph Cloud account or self-hosted Sourcegraph instance!

notebooks

Manage Batch Changes

Browse, view, publish, and merge changesets for batch changes straight from Raycast. Batch changes automate large-scale code changes to keep your code up to date, fix critical security issues, and pay down tech debt across all of your repositories.

Batch changes is currently only supported on Sourcegraph Self-Hosted.

notebooks


Changelog

The changelog documents all notable updates to the extension.

Updates will be regularly published to the Raycast Extensions repository from the bobheadxi/raycast-sourcegraph repository. To try out yet-to-be-published changes, you can install this extension from source.


Contributing

See CONTRIBUTING.md if you're interested in contributing to this extension!

Have ideas or suggestions? Please feel free to open an issue with feedback!