-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make :OpenGitHubIssue and :OpenGitHubPullReq look under the cursor #20
Conversation
321bd9c
to
dbb115b
Compare
autoload/openbrowser/github.vim
Outdated
@@ -180,13 +180,23 @@ function! s:cmd_open_url(args, type) | |||
" Both '#1' and '1' are supported. | |||
let number = matchstr(get(a:args, 0, ''), '^#\?\zs\d\+\ze$') | |||
|
|||
" If the issue number is omitted, the index of argument of repository will | |||
" become 0 (a:args[0]), otherwise 1 (a:args[1]) | |||
let repos_arg_index = number == '' ? 0 : 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
すみません、==# にしておいて下さい
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
了解です
autoload/openbrowser/github.vim
Outdated
return '' | ||
endif | ||
|
||
" Emit first '#' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
emit はなんか違うような。
get rid of とか prune ですかね?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
すみません Omit でした…!
Fixed. |
ヤッター!🎉 言い忘れましたが、かなり便利みの高い PR でした! |
カーソル下が
#数字
だった場合,その issue(または pull request)番号のページを開くようにしました.コード内に修正した該当 issue 番号が書いてあることが結構あって,そこを直接開きたいことが結構あったので実装しました.番号からだけでは issue か pull request か判断できないのですが,GitHub 側で適宜リダイレクトされると思うので良いかなと思っています.一応手元では動作確認済みです with 8.0-329 on macOS 10.12