11
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Vimでgithub issuesを読み書きできるように、vim-metarw-github-issuesを作った

Posted at

vim-metarwシリーズ第二弾。
自分のために作ってるので、他の人が使いやすいかどうかは良く分かりませんが、vim-metarwを使ってGithubのissueを読み書きできるようにしました。

joker1007/vim-metarw-github-issues

大枠は前回作ったvim-metarw-qiitaと余り変化ありません。

特定のリポジトリのissueだけでなく、organization単位でもissueを一覧できるようにしています。

またissueの編集、コメントの書き込みと表示もサポートしましたが、表示の都合上、変に編集すると誤爆する危険性があるので、もし利用される方が居たら自己責任で利用をお願いします。

vimにもうちょっと詳しくなれば、色々回避できるのかもしれない。

セーフモードとか用意した方が良いのかなー。でも面倒さが増えるし…。

Usage

Write vimrc

let g:github_user='joker1007'
let g:github_token='xxxxxx' " API経由で取得しておく

" Optional
let g:github_per_page=50 " Max 100

Post current buffer as new item

:write issues:repos/:owner/:repo

Caution: Not modify comment separator, otherwise post issue body with comments

Open a issue

:edit issues:repos/:owner/:repo/issues/:number

Update current open issue

:write

Caution: Not modify comment separator, otherwise post issue body with comments

Post new comment to current open issue

Open comment buffer

:IssueCommentPost

and save

:write

Caution: Existing issue buffer is not refreshed. Refresh Manually.

Get issues for repository

:edit issues:repos/:owner/:repo

Get issues for organization

:edit issues:orgs/:org?filter=all

Open by browser

:IssueBrowse
11
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?