Skip to content

Add :ToGithubBlame to open GitHub blame route #14

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

Open
synthead opened this issue Jul 26, 2023 · 0 comments · May be fixed by #15
Open

Add :ToGithubBlame to open GitHub blame route #14

synthead opened this issue Jul 26, 2023 · 0 comments · May be fixed by #15

Comments

@synthead
Copy link

synthead commented Jul 26, 2023

This should be a quick-n-easy one!

I often use this plugin to look up contributors to specific lines of code, and will sometimes look at PRs that shipped specific changes to do a little research on code decisions. When I use :ToGithub, I get a perma-link to the LOC, but it would also be really handy to also be able to do:

:ToGithubBlame

I propose that this ☝️ should be a new command offered by this plugin to go to the "blame" perma-link for the selected lines.

As we already know, :ToGithub builds a perma-link route that looks like this:

https://github.com/synthead/timex_datalink_client/blob/7dcbcfd35ffcfe559f67a23b6664e821edc9b612/lib/timex_datalink_client/protocol_3/start.rb#L10

The perma-link "blame" route is very similar, and looks like this:

https://github.com/synthead/timex_datalink_client/blame/7dcbcfd35ffcfe559f67a23b6664e821edc9b612/lib/timex_datalink_client/protocol_3/start.rb#L10

As you can see, instead of the "blob" segment, it simply uses "blame" instead.

Should be handy! I'd use it 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant