jdorfman / sourcegraph-c9

Sourcegraph for Cloud9 https://sourcegraph.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sourcegraph for Cloud9

The Sourcegraph plugin for Cloud9 editor let's you quickly open and search code on Sourcegraph.com or your Sourcegraph Server instance easily and efficiently.

Installation

To load a plugin open your Init Script from Cloud9 > Open Your Init Script menu. And add code like this:

// check that this is the workspace you want to use
if (services.c9.workspaceId.match("{username}/{workspacename}")) {
    // call plugin manager with a list of plugins you want to load
    // this takes either url, or a path on your vm
    services.pluginManager.loadPackage([
        "https://cdn.rawgit.com/sourcegraph/sourcegraph-c9/v0.0.3/sourcegraph/c9build/package.sourcegraph.js",
    ])
}

Usage

In the command palette (Cmd+.), search for sourcegraph to see available actions.

Keyboard Shortcuts:

Description Mac Linux / Windows
Open file in Sourcegraph Option+O Alt+O
Search selection in Sourcegraph Option+S Alt+S

You can customize these keybindings in the preferences menu (Cmd+,)

Settings

  • Open Cloud9 -> Preferences (Cmd+,)
  • User Settings
  • Sourcegraph Server
  • Set the URL to your Sourcegraph Server instance or leave as the default Sourcegraph.com value.

Sourcegraph URL

About

Sourcegraph for Cloud9 https://sourcegraph.com


Languages

Language:JavaScript 100.0%