PBrowse
works as GBrowse
(from fugitive.vim) but for Pull requests. This plugin allows you to quickly open GitHub pull request pages at specific lines or selections.
pbrowse-vim.mp4
For lazy.nvim
{
"gitusp/pbrowse.nvim",
lazy = true,
cmd = { "PBrowse" },
}
git
: Git version controlgh
: Git command-line tools- A repository connected to GitHub
- Active pull request for the current branch
In normal mode:
:PBrowse
- Browse the current file
In visual mode:
- Select text and use
:PBrowse
- Browse the selected lines
Run :checkhealth pbrowse
to verify that all dependencies are properly installed.
This plugin was entirely written with assistance from Claude 3.7 Sonnet. As I'm new to Vim plugin development, any corrections, suggestions, or improvements are greatly welcome!
This plugin has only been tested on macOS. Contributions and help testing on other platforms are welcome!