{"id":13705772,"url":"https://github.com/sourcegraph/sourcegraph-sublime","last_synced_at":"2025-05-05T17:30:26.745Z","repository":{"id":51026520,"uuid":"89764036","full_name":"sourcegraph/sourcegraph-sublime","owner":"sourcegraph","description":"Sourcegraph for Sublime Text 3","archived":true,"fork":false,"pushed_at":"2020-09-11T22:39:41.000Z","size":20,"stargazers_count":17,"open_issues_count":2,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-08-03T22:15:58.296Z","etag":null,"topics":["editor","plugin","repo-type-editor","sourcegraph","st3","sublime"],"latest_commit_sha":null,"homepage":"https://sourcegraph.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sourcegraph.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-29T04:41:25.000Z","updated_at":"2024-07-03T15:01:53.000Z","dependencies_parsed_at":"2022-09-04T02:41:23.110Z","dependency_job_id":null,"html_url":"https://github.com/sourcegraph/sourcegraph-sublime","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Fsourcegraph-sublime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Fsourcegraph-sublime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Fsourcegraph-sublime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Fsourcegraph-sublime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sourcegraph","download_url":"https://codeload.github.com/sourcegraph/sourcegraph-sublime/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224455916,"owners_count":17314206,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["editor","plugin","repo-type-editor","sourcegraph","st3","sublime"],"created_at":"2024-08-02T22:00:47.714Z","updated_at":"2024-11-13T13:30:53.661Z","avatar_url":"https://github.com/sourcegraph.png","language":"Python","funding_links":[],"categories":["Extensions"],"sub_categories":[],"readme":"# Sourcegraph for Sublime Text 3 [![Package Control](https://img.shields.io/packagecontrol/dt/Sourcegraph.svg)](https://packagecontrol.io/packages/Sourcegraph)\n\nThe Sourcegraph plugin for Sublime Text 3 enables you to quickly open and search code on Sourcegraph.com easily and efficiently.\n\n## Installation\n\n1. [Install Package Control](https://packagecontrol.io/installation), if you haven't already.\n1. Open the command palette \u003ckbd\u003eCmd+Shift+P\u003c/kbd\u003e (\u003ckbd\u003eCtrl+Shift+P\u003c/kbd\u003e on Windows/Linux).\n2. Search for `Package Control: Install Package` and press enter.\n3. Search for `Sourcegraph` and press enter to install the plugin.\n\n\n## Usage\n\nIn the command palette (`Cmd+Shift+P` or `Ctrl+Shift+P`), search for `Sourcegraph:` to see available actions.\n\nKeyboard Shortcuts:\n\n| Description                     | Mac                 | Linux / Windows  |\n|---------------------------------|---------------------|------------------|\n| Open file in Sourcegraph        | \u003ckbd\u003eOption+A\u003c/kbd\u003e | \u003ckbd\u003eAlt+A\u003c/kbd\u003e |\n| Search selection in Sourcegraph | \u003ckbd\u003eOption+S\u003c/kbd\u003e | \u003ckbd\u003eAlt+S\u003c/kbd\u003e |\n\n\n## Settings\n\nOpen the user package settings (`Sublime Text` -\u003e `Package Settings` -\u003e `Sourcegraph` -\u003e `Settings - User`), then modify this example configuration:\n\n```\n{\n\t// The Sourcegraph instance to use. Specify your on-premises Sourcegraph\n\t// instance here, if applicable.\n\t\"SOURCEGRAPH_URL\": \"https://sourcegraph.com\",\n}\n```\n\n\n## Questions \u0026 Feedback\n\nPlease file an issue: https://github.com/sourcegraph/sourcegraph-sublime/issues/new\n\n\n## Logs\n\nLogs show up in the Sublime console, which is accessible via \u003ckbd\u003eCtrl+`\u003c/kbd\u003e\n\n\n## Uninstallation\n\n1. Open the command palette \u003ckbd\u003eCmd+Shift+P\u003c/kbd\u003e (\u003ckbd\u003eCtrl+Shift+P\u003c/kbd\u003e on Windows/Linux).\n2. Search for `Package Control: Remove Package` and press enter.\n3. Search for `sourcegraph` and press enter to uninstall the plugin.\n\n\n## Development\n\nTo develop the plugin:\n\n- `git clone` the repository into `~/Library/Application Support/Sublime Text 3/Packages/sourcegraph-sublime`\n- Open the console with \u003ckbd\u003eCtrl+`\u003c/kbd\u003e\n- Make changes to the Python code and watch as Sublime reloads.\n- To release a new version, you MUST update the following files:\n  1. `messages.json` (add a new version entry)\n  2. `README.md` (describe ALL changes)\n  3. `messages/welcome.txt` (copy from README.md change above)\n  4. `sourcegraph.py` (`VERSION` constant)\n  - Then `git commit -m \"all: release v\u003cTHE VERSION\u003e\"` and `git push` and `git tag v\u003cTHE VERSION\u003e` and `git push --tags`.\n  - Note: it sometimes takes a few hours for it to show up on https://packagecontrol.io/packages/Sourcegraph\n\n\n## Version History\n\n- v1.0.7 - Correctly open the default browser on Mac OS.\n    - Added a workaround for a Mac OS bug that causes Python to incorrectly open the second (non-default) browser. https://bugs.python.org/issue30392\n\n- v1.0.6 - Fixed search shortcut.\n    - Updated the search URL to reflect a recent Sourcegraph.com change.\n\n- v1.0.5 - Minor fixes to configuration.\n    - Fix opening README, LICENSE, etc through \"Package Settings\" menu.\n    - Update README to describe how to use with on-premises Sourcegraph instances.\n\n- v1.0.4 - Improved support for on-premises Sourcegraph instances\n    - Now using the `sourcegraph.com/-/editor` endpoint.\n\n- v1.0.3 - Added usage metrics\n    - Added minimal and non-obtrusive usage metrics, which lets us at Sourcegraph better improve our editor extensions.\n\n- v1.0.2 - Usability improvements\n    - Adjusted the global search URL to the correct one, so that the search shortcut will work.\n    - Added support for non-default git branches (brings you to the checked out branch on Sourcegraph.com)\n    - Changed the keyboard shortcuts to \u003ckbd\u003eOption+S\u003c/kbd\u003e (search selection) and \u003ckbd\u003eOption+A\u003c/kbd\u003e (open selection) (\u003ckbd\u003eAlt\u003c/kbd\u003e instead of \u003ckbd\u003eOption\u003c/kbd\u003e for Windows and Linux).\n\n- v1.0.1 - Minor bug fixes\n    - Fixed a bug where `https` etc. GitHub repo remote URLs would incorrectly build the Sourcegraph.com URL.\n    - Windows: Fixed a bug where git commands would create Command Prompt pop-up windows.\n\n- v1.0.0 - Initial Release; basic Open File \u0026 Search functionality.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourcegraph%2Fsourcegraph-sublime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsourcegraph%2Fsourcegraph-sublime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourcegraph%2Fsourcegraph-sublime/lists"}