unknwon / raycast-sourcegraph

*️⃣ Search code on Sourcegraph directly within Raycast

Home Page:https://raycast.com/bobheadxi/sourcegraph

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


sourcegraph

Sourcegraph for Raycast

Search your code and 2M+ public repositories on Sourcegraph directly within Raycast.

Install · Setup · Commands · Issues · Changelog · Contributing

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. To override it for a search, just include a context: parameter in your query.

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!

Browse Batch Changes

Browse, view, and publish 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.


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!


About

*️⃣ Search code on Sourcegraph directly within Raycast

https://raycast.com/bobheadxi/sourcegraph

License:MIT License


Languages

Language:TypeScript 98.7%Language:Shell 1.3%