News for hackers. Stuff that matters.
Re:Show HN: CodeLink: create links to blocks of code in your... by grantjpowell on Tuesday November 22, 2022 @09:58PM (#33714601)
If you use the vim fugitive plugin[1], The `:Gbrowse` command [2] will open your browser to github on the correct file/commit. It also works on visually selected ranges, automatically linking to the range in github

[1] https://github.com/tpope/vim-fugitive

[2] https://github.com/tpope/vim-fugitive/blob/master/doc/fugiti...

Re:Show HN: CodeLink: create links to blocks of code in your... by rupertdenton on Tuesday November 22, 2022 @10:05PM (#33714650)
Hey! Thanks for the comment. CodeLink also auto loads lines of code seamlessly in VS Code, JetBrains, GitHub, GitLab, BitBucket etc. It also makes it easy if you don't have the repo locally - it'll check it out for you. If you're not on the right commit/branch it'll swap to it for you. It'll also unfurl the code on Slack (more integrations inbound!) and allow people you share it with to open it up in their IDE or VCS! Hopefully makes life easier for our fellow devs :)