gitlinker.nvim icon indicating copy to clipboard operation
gitlinker.nvim copied to clipboard

Go to blame view

Open CallumHoward opened this issue 4 years ago • 3 comments

Is your feature request related to a problem? Please describe. Sometimes I want to copy the

Describe the solution you'd like I would like an additional mapping to copy (and also one to open in browser) the URL for the Blame view in GitHub, BitBucket etc.

Normal view:

https://github.com/ruifm/gitlinker.nvim/blob/master/doc/gitlinker.txt#L53

Blame view:

https://github.com/ruifm/gitlinker.nvim/blame/master/doc/gitlinker.txt#L53

Describe alternatives you've considered

  • Current work around is to open in browser, click blame and then copy the url
    • or slightly faster with GitHub and browser keybindings: B<C-l><C-c>
  • I guess this might be possible with a custom callback, but I think this would mean I must choose either blame or normal and couldn't have mappings for both simultaneously..
  • Previously when using Gina I had a mapping that made this possible using --scheme flag:
nnoremap <silent> <leader>gB V:Gina browse : --scheme=blame<CR>

Additional context Add any other context or screenshots about the feature request here.

CallumHoward avatar Sep 11 '21 23:09 CallumHoward

Good idea, it seems simple to implement through an option, I will work on it this week together with https://github.com/ruifm/gitlinker.nvim/issues/29 in other to make mapping different actions more manageable.

ruifm avatar Sep 13 '21 08:09 ruifm

Hi, any chance of revisiting this?

CallumHoward avatar Aug 14 '23 12:08 CallumHoward

hi @CallumHoward, let's track this issue here: https://github.com/linrongbin16/gitlinker.nvim

linrongbin16 avatar Nov 12 '23 22:11 linrongbin16