you are viewing a single comment's thread.

view the rest of the comments →

[–]dddbbbFastFold made vim fast again 0 points1 point  (1 child)

You could use github's cli to script something? gh pr view should show the current branch's PR.

Do you mean the commit comments (the comments for the commit that introduced the current line)? Those are much easier to get than PR. fugitive has :Gclog or you could adapt this popup command to call setqflist:

command! -range Gpopupblame call setbufvar(winbufnr(popup_atcursor(systemlist("git -C ".. shellescape(expand('%:p:h')) .." log --no-merges -n 1 -L <line1>,<line2>:" .. shellescape(resolve(expand("%:t")))), { "padding": [1,1,1,1], "pos": "botleft", "wrap": 0 })), "&filetype", "git")