The Sourcegraph plugin for Atom enables you to quickly open and search code on Sourcegraph.com easily and efficiently.
- Open
Atom->Preferences(Cmd+,). - Select
Installon the left. - Search for
Sourcegraphand press enter, thenInstall. - Restart Atom.
In the command palette (Cmd+Shift+P or Ctrl+Shift+P), search for Sourcegraph: to see available actions.
Keyboard Shortcuts:
| Description | Mac | Linux / Windows |
|---|---|---|
| Open file in Sourcegraph | Option+A | Alt+A |
| Search selection in Sourcegraph | Option+S | Alt+S |
- Open
Atom->Preferences(Cmd+,). - Select
Packageson the left. - Search for
Sourcegraph, thenSettings. - Click the
Default: https://sourcegraph.comfield to edit it and enter your on-premises Sourcegraph instance.
Please file an issue: https://github.com/sourcegraph/sourcegraph-atom/issues/new
- Open
Atom->Preferences(Cmd+,). - Select
Packageson the left. - Search for
Sourcegraph, thenUninstall. - Restart Atom.
To develop the plugin:
git clonethe repository into~/.atom/Packages/sourcegraph(lowercasepackageson Mac),npm installand open in Atom.- Use Cmd+Shift+P to open the command pallette, and choose
Window: Reloadto reload the extension in the current Atom window. - Atom does some really bad things with respect to reopening the workspace, so
File->Reopen ProjectandView->Toggle Tree View(Cmd+\) are your friends here. Consider using a separate editor to make changes. - To release a new version, you MUST update the following files:
CHANGELOG.md(describe ALL changes)lib/sourcegraph.js(VERSIONconstant)git commit -m "all: release v<THE VERSION>" && git pushapm publish <major|minor|patch>
See CHANGELOG.md