Sourcegraph for Raycast
Search your code and 2M+ public repositories on Sourcegraph directly within Raycast.
Install · Setup · Commands · Issues · Changelog · Contributing
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 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. To override it for a search, just include a context:
parameter in your query.
Find Search Notebooks
Browse and preview search 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!