open-browser-github.vim icon indicating copy to clipboard operation
open-browser-github.vim copied to clipboard

:OpenGithubProject ignores argument

Open mwgkgk opened this issue 6 years ago • 2 comments

With this .vimrc:

set nocompatible

call plug#begin('~/.vim/bundle/')

Plug 'tyru/open-browser.vim'
Plug 'tyru/open-browser-github.vim'

call plug#end()

:OpenGithubProject always opens current repo, even when called with an argument.

E.g. calling :OpenGithubProject tyru/open-browser.vim opens mwgkgk/dotfiles, if I call it from my .vimrc :) If called outside of a valid repo, open-browser prints the following complaint:

open-browser doesn't know how to open 'Usage: hub browse [-uc] [[<USER>/]<REPOSITORY>|--] [<SUBPAGE>]'.

mwgkgk avatar Oct 23 '19 07:10 mwgkgk

Have you installed hub command? In my environment (no hub command), I couldn't reproduce this (argument is recognized, and no error message).

tyru avatar Mar 16 '20 14:03 tyru

The situation seems to be exactly as you described!

Not reproducible with hub removed.

Is this an issue that is possible to fix by configuration? Do you intend to have hub be incompatible with :OpenGithubProject ? It might overlap in some regards as well.

In general, thank you for your work on Vim plugins!

mwgkgk avatar Mar 17 '20 10:03 mwgkgk