Skip to content

gerardroche/sublime-git-open

Repository files navigation

Git Open

A Sublime Text plugin that provides git-open integration.

Commands

Command Description
GitOpen Open the page for this branch on the repo website
GitOpen: Commit Open the current commit in the repo website
GitOpen: Issue If this branch is named like issue/#123, this will open the corresponding issue in the repo website

The git_open command accepts the following arguments:

Argument Type
commit bool
issue bool
remote str
branch str

Example:

{
    "caption": "GitOpen: Upstream",
    "command": "git_open",
    "args": {
        "remote": "upstream",
        "branch": "master"
    }
},

NeoVintageous mappings

NeoVintageous is a Vim emulator for Sublime Text.

  1. Open the Command Palette: Command Palette → NeoVintageous: Open neovintageous file.

  2. Add your preferred mappings.

    Example

    nnoremap <leader>oo :GitOpen<CR>
    nnoremap <leader>oc :GitOpen commit=true<CR>
    nnoremap <leader>oi :GitOpen issue=true<CR>
  3. To apply the changes, reload the neovintageousrc from the Command Palette: Command Palette → NeoVintageous: Reload neovintageous file.

Changelog

See CHANGELOG.md.

License

Released under the GPL-3.0-or-later License.