mirror of
https://github.com/tpope/vim-rhubarb.git
synced 2026-01-26 21:08:21 +08:00
Replace :Gbrowse with :GBrowse
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
If [fugitive.vim][] is the Git, rhubarb.vim is the Hub. Here's the full list
|
If [fugitive.vim][] is the Git, rhubarb.vim is the Hub. Here's the full list
|
||||||
of features:
|
of features:
|
||||||
|
|
||||||
* Enables `:Gbrowse` from fugitive.vim to open GitHub URLs.
|
* Enables `:GBrowse` from fugitive.vim to open GitHub URLs.
|
||||||
|
|
||||||
* Sets up `:Git` to use [`hub`](https://github.com/github/hub) if installed
|
* Sets up `:Git` to use [`hub`](https://github.com/github/hub) if installed
|
||||||
rather than `git`.
|
rather than `git`.
|
||||||
@@ -28,7 +28,7 @@ then simply copy and paste:
|
|||||||
You'll also need [fugitive.vim][].
|
You'll also need [fugitive.vim][].
|
||||||
|
|
||||||
[Curl](http://curl.haxx.se/) (included with macOS) is required for features
|
[Curl](http://curl.haxx.se/) (included with macOS) is required for features
|
||||||
that use the GitHub API (i.e., `:Gbrowse` doesn't need it).
|
that use the GitHub API (i.e., `:GBrowse` doesn't need it).
|
||||||
[Generate a personal access token](https://github.com/settings/tokens/new)
|
[Generate a personal access token](https://github.com/settings/tokens/new)
|
||||||
with repo permissions and add it to your `.netrc`:
|
with repo permissions and add it to your `.netrc`:
|
||||||
|
|
||||||
|
|||||||
@@ -240,7 +240,7 @@ function! rhubarb#omnifunc(findstart, base) abort
|
|||||||
return rhubarb#Complete(a:findstart, a:base)
|
return rhubarb#Complete(a:findstart, a:base)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" Section: Fugitive :Gbrowse support
|
" Section: Fugitive :GBrowse support
|
||||||
|
|
||||||
function! rhubarb#FugitiveUrl(...) abort
|
function! rhubarb#FugitiveUrl(...) abort
|
||||||
if a:0 == 1 || type(a:1) == type({})
|
if a:0 == 1 || type(a:1) == type({})
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ License: Same terms as Vim itself (see |license|)
|
|||||||
Use |i_CTRL-X_CTRL-O| to omni-complete GitHub issues or project collaborator
|
Use |i_CTRL-X_CTRL-O| to omni-complete GitHub issues or project collaborator
|
||||||
usernames when editing a commit message.
|
usernames when editing a commit message.
|
||||||
|
|
||||||
Use Fugitive's |:Gbrowse| to browse to the GitHub URL for the current buffer.
|
Use Fugitive's |:GBrowse| to browse to the GitHub URL for the current buffer.
|
||||||
|
|
||||||
ABOUT *rhubarb-about*
|
ABOUT *rhubarb-about*
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user