Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go to blame view #30

Open
CallumHoward opened this issue Sep 11, 2021 · 3 comments
Open

Go to blame view #30

CallumHoward opened this issue Sep 11, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@CallumHoward
Copy link

CallumHoward commented Sep 11, 2021

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
  • 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 CallumHoward added the enhancement New feature or request label Sep 11, 2021
@ruifm
Copy link
Owner

ruifm commented Sep 13, 2021

Good idea, it seems simple to implement through an option, I will work on it this week together with #29 in other to make mapping different actions more manageable.

@CallumHoward
Copy link
Author

Hi, any chance of revisiting this?

@linrongbin16
Copy link

linrongbin16 commented Nov 12, 2023

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

stevanmilic pushed a commit to stevanmilic/gitlinker.nvim that referenced this issue Nov 12, 2023
* refactor: add annotations

* refactor: add annotation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants