vim-github-url icon indicating copy to clipboard operation
vim-github-url copied to clipboard

What do you think of specifying a branch?

Open samguyjones opened this issue 1 year ago • 1 comments

This is really handy, but sometimes when I use this, I want to use a branch that I'm not on. I might be working on a specific branch that isn't pushed. If I run this as is, I get a link that'll give anyone a 404. I want to be able to stay on my own dirty branch and jump to a file I'm not touching and generate link to the repo, file and line on the main branch.

This shouldn't be the default behavior, but it's an edge case I'd like it to support. I could raise a PR to do this, but I'm not sure if you have any interest at all in having this in the plugin, so I thought I'd check first.

samguyjones avatar Jan 13 '23 19:01 samguyjones

I'm open to a PR to add this feature. Are you thinking it would be :GitHubURL main or something else? Thanks.

pgr0ss avatar Jan 14 '23 18:01 pgr0ss