Bitbucket
Bitbucket plugin for Sublime Text 3
Details
Installs
- Total 8K
- Win 4K
- Mac 3K
- Linux 2K
Apr 1 | Mar 31 | Mar 30 | Mar 29 | Mar 28 | Mar 27 | Mar 26 | Mar 25 | Mar 24 | Mar 23 | Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | Mar 3 | Mar 2 | Mar 1 | Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | Feb 22 | Feb 21 | Feb 20 | Feb 19 | Feb 18 | Feb 17 | Feb 16 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
SublimeBucket
Bitbucket plugin for Sublime Text 3
Installation
The easiest way to install the Bitbucket plugin is using Package Control (the package is listed as simply “Bitbucket”). If you prefer to do things the hard way, you can create a directory called “SublimeBucket” (or anything for that matter) in your Packages folder and copy the following files there:
- sublime_bucket.py
- Main.sublime-menu
- Context.sublime-menu
- Bitbucket.sublime-commands
- Bitbucket.sublime-settings
Commands
The following commands are available under “Bitbucket” from the context menu as well as the command palette and can be assigned to keyboard shortcuts. Every command should work for both Git and Mercurial repositories.
1. Open in Bitbucket
Opens the selected line(s) in Bitbucket, preserving all highlighted ranges.
Example keyboard shortcut:
{
"keys": ["super+b", "super+o"],
"command": "open_in_bitbucket"
}
2. Open Bitbucket Changeset
Opens the commit where the current line was last changed in Bitbucket.
Example keyboard shortcut:
{
"keys": ["super+b", "super+c"],
"command": "open_bitbucket_changeset"
}
3. Find Bitbucket Pull Request
Looks up the commit where the current line was last changed and opens the pull request where that change was introduced.
Example keyboard shortcut:
{
"keys": ["super+b", "super+p"],
"command": "find_bitbucket_pull_request"
}
4. Open in Issue Tracker
Looks up the commit where the current line was last changed and opens the issue in your issue tracker (e.g., in Jira) with which that change is associated.
See the issue_trackers setting for more information.
Example keyboard shortcut:
{
"keys": ["super+b", "super+i"],
"command": "open_in_issue_tracker"
}
Settings
This plugin stores settings in the Bitbucket.sublime-settings package. The following values are configurable:
1. bitbucket_hosts
A list of hosts to identify as Bitbucket. For the vast majority of users this
should just stay as the default of ['bitbucket.org']
. On the off chance you
have some fancy access to other Bitbucket environments (e.g., you're a
developer on the Bitbucket team), you can add the domain(s) for those
environment to this list.
2. issue_trackers
A list of issue trackers you use, to power the “Open in Issue Tracker” command.
Each issue tracker type has its own style of configuration. Currently Bitbucket and Jira are supported.
Bitbucket
The Bitbucket tracker identifies links to Bitbucket issues in commit messages.
{
"type": "bitbucket",
// Optional: a custom Bitbucket host, in case you're one of those special
// people who also modified the `bitbucket_hosts` setting above. Defaults to
// https://bitbucket.org for the majority of the population.
"host": "https://bitbucket.org"
}
Jira
The Jira tracker identifies links to Jira issues for a given instance and a specified list of project keys.
{
"type": "jira",
// The base URL (including https://) of the Jira instance.
"host": "https://jira.company.com",
// An array of project keys (e.g., ABC) for identifying issue references. For
// example, if you have `["ABC"]` in here, then if a commit message includes
// a string like 'ABC-123' the Bitbucket plugin can take you straight to that
// issue.
"project_keys": []
}
Why is this on GitHub? Don't you work for Bitbucket?
GitHub is for toy projects (like this) while Bitbucket is for Serious Work™.
Just kidding. I didn't have enough Python projects on GitHub.