Skip to content

Commit 920af7b

Browse files
committed
Update package.json for 0.0.1 release
1 parent 391c5d2 commit 920af7b

File tree

5 files changed

+46
-12
lines changed

5 files changed

+46
-12
lines changed

README.md

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,38 @@ The Sourcegraph plugin for Cloud9 editor let's you quickly open and search code
44

55
## Installation
66

7-
todo
7+
To load a plugin open your *Init Script* from Cloud9 > Open Your Init Script menu.
8+
And add code like this:
9+
10+
```
11+
// check that this is the workspace you want to use
12+
if (services.c9.workspaceId.match("{username}/{workspacename}")) {
13+
// call plugin manager with a list of plugins you want to load
14+
// this takes either url, or a path on your vm
15+
services.pluginManager.loadPackage([
16+
"https://cdn.rawgit.com/sourcegraph/sourcegraph-c9/v0.0.1/sourcegraph/c9build/package.sourcegraph.js",
17+
])
18+
}
19+
```
820

921
## Usage
1022

11-
todo
23+
In the command palette (<kbd>Cmd+.</kbd>), search for `sourcegraph` to see available actions.
1224

13-
## Settings
25+
Keyboard Shortcuts:
26+
27+
| Description | Mac | Linux / Windows |
28+
|---------------------------------|---------------------|------------------|
29+
| Open file in Sourcegraph | <kbd>Option+O</kbd> | <kbd>Alt+O</kbd> |
30+
| Search selection in Sourcegraph | <kbd>Option+S</kbd> | <kbd>Alt+S</kbd> |
1431

15-
todo
32+
You can customize these keybindings in the preferences menu (<kbd>Cmd+,</kbd>)
33+
34+
## Settings
1635

17-
## Development
36+
- Open `Cloud9` -> `Preferences` (<kbd>Cmd+,</kbd>)
37+
- User Settings
38+
- Sourcegraph Server
39+
- Set the URL to your Sourcegraph Server instance or leave as the default Sourcegraph.com value.
1840

19-
todo
41+
![Sourcegraph URL](./settings.png)

settings.png

255 KB
Loading

sourcegraph/c9build/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "sourcegraph",
3+
"description": "Sourcegraph for C9",
34
"version": "0.0.1",
45
"author": "Sourcegraph",
56
"contributors": [
@@ -10,11 +11,14 @@
1011
],
1112
"repository": {
1213
"type": "git",
13-
"url": ""
14+
"url": "https://github.com/sourcegraph/sourcegraph-c9"
1415
},
1516
"plugins": {
1617
"sourcegraph": {}
1718
},
19+
"engines": {
20+
"c9": ">=3.0.0"
21+
},
1822
"categories": ["miscellaneous"],
19-
"licenses": []
23+
"license": "MIT"
2024
}

sourcegraph/c9build/package.sourcegraph.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
define("plugins/sourcegraph/package.sourcegraph", [], {
22
"name": "sourcegraph",
3+
"description": "Sourcegraph for C9",
34
"version": "0.0.1",
45
"author": "Sourcegraph",
56
"contributors": [
@@ -10,12 +11,15 @@ define("plugins/sourcegraph/package.sourcegraph", [], {
1011
],
1112
"repository": {
1213
"type": "git",
13-
"url": ""
14+
"url": "https://github.com/sourcegraph/sourcegraph-c9"
15+
},
16+
"engines": {
17+
"c9": ">=3.0.0"
1418
},
1519
"categories": [
1620
"miscellaneous"
1721
],
18-
"licenses": [],
22+
"license": "MIT",
1923
"c9": {
2024
"plugins": [
2125
{

sourcegraph/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "sourcegraph",
3+
"description": "Sourcegraph for C9",
34
"version": "0.0.1",
45
"author": "Sourcegraph",
56
"contributors": [
@@ -10,11 +11,14 @@
1011
],
1112
"repository": {
1213
"type": "git",
13-
"url": ""
14+
"url": "https://github.com/sourcegraph/sourcegraph-c9"
1415
},
1516
"plugins": {
1617
"sourcegraph": {}
1718
},
19+
"engines": {
20+
"c9": ">=3.0.0"
21+
},
1822
"categories": ["miscellaneous"],
19-
"licenses": []
23+
"license": "MIT"
2024
}

0 commit comments

Comments
 (0)