tyru / open-browser-github.vim

Open GitHub URL of current file, etc. from Vim editor (supported GitHub Enterprise)
BSD 3-Clause "New" or "Revised" License
173 stars 14 forks source link

:'<,'>OpenGithubFile opens URL without line-number #32

Closed kyoh86 closed 4 years ago

kyoh86 commented 4 years ago

':'<,'>OpenGithubFile' opens target file in GitHub. But the URL is without line-number.

It shows message like below.

opening 'https://github.com/kyoh86/gordon/blob/9fe7952d6d1d0c093300eed487d803eced23b8e5/internal/env/def.go' ... done! (xdg-open)

my env FYI:

:version
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Feb 12 2020 03:12:45)
Included patches: 1-246
Compiled by Arch Linux AUR
Huge version with GTK2 GUI.  Features included (+) or not (-):
+acl               +clientserver      +diff              +folding           +libcall           +mouse_gpm         +packages          +rightleft         -tag_old_static    +user_commands     +X11
+arabic            +clipboard         +digraphs          -footer            +linebreak         -mouse_jsbterm     +path_extra        +ruby/dyn          -tag_any_white     +vartabs           -xfontset
+autocmd           +cmdline_compl     +dnd               +fork()            +lispindent        +mouse_netterm     +perl/dyn          +scrollbind        -tcl               +vertsplit         +xim
+autochdir         +cmdline_hist      -ebcdic            +gettext           +listcmds          +mouse_sgr         +persistent_undo   +signs             +termguicolors     +virtualedit       +xpm
-autoservername    +cmdline_info      +emacs_tags        -hangul_input      +localmap          -mouse_sysmouse    +popupwin          +smartindent       +terminal          +visual            +xsmp_interact
+balloon_eval      +comments          +eval              +iconv             +lua/dyn           +mouse_urxvt       +postscript        +sound             +terminfo          +visualextra       +xterm_clipboard
+balloon_eval_term +conceal           +ex_extra          +insert_expand     +menu              +mouse_xterm       +printer           +spell             +termresponse      +viminfo           -xterm_save
+browse            +cryptv            +extra_search      +job               +mksession         +multi_byte        +profile           +startuptime       +textobjects       +vreplace          
++builtin_terms    +cscope            -farsi             +jumplist          +modify_fname      +multi_lang        +python/dyn        +statusline        +textprop          +wildignore        
+byte_offset       +cursorbind        +file_in_path      +keymap            +mouse             -mzscheme          +python3/dyn       -sun_workshop      +timers            +wildmenu          
+channel           +cursorshape       +find_in_path      +lambda            +mouseshape        +netbeans_intg     +quickfix          +syntax            +title             +windows           
+cindent           +dialog_con_gui    +float             +langmap           +mouse_dec         +num64             +reltime           +tag_binary        +toolbar           +writebackup       
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi-3.2.1/include -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/atk-1.0 -pthread    -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_REENTRANT  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1       
Linking: gcc   -L. -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.30/core_perl/CORE  -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -L/usr/local/lib -Wl,--as-needed -o vim   -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lharfbuzz -lfontconfig -lfreetype  -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE  -lm -ltinfo -lelf -lnsl    -lcanberra  -lacl -lattr -lgpm -ldl   -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.30/core_perl/CORE -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -fstack-protector-strong -L/usr/local/lib  -L/usr/lib/perl5/5.30/core_perl/CORE -lperl -lpthread -ldl -lm -lcrypt -lutil -lc        
$ hub --version
git version 2.26.0
hub version 2.14.2
$ uname -rsv
Linux 5.5.13-arch1-1 #1 SMP PREEMPT Wed, 25 Mar 2020 16:04:40 +0000