• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

git-links

Get a link to any code hosted in github
  • #git
  • #link
  • #url
calebmeyer
1,047
1
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

git-links

Beta: command names may change, but no commands should disappear

This package provides a quick way to get a link to any piece of code hosted in github or github enterprise.

Install

apm install git-links

or

  1. Ctrl(command)+, (open settings)
  2. Click install, and ensure that "packages" is selected
  3. Type git-links in the box and hit enter
  4. Click install

Usage

Define your own keymap, or use Ctrl(command)+Shift+P (the command palette) to execute one of the commands

Commands

NOTE: These are subject to change at any time until this package reaches 1.0

Name Description
git-links:copy-absolute-link-for-current-line Copies a link to your clipboard which represents the current line of code in Github
git-links:copy-absolute-link-for-current-file Copies a link to your clipboard which represents the current file in Github
git-links:copy-absolute-link-for-current-commit Copies a link to your clipboard which represents the current commit in Github

Roadmap

  • [x] 0.1.0 Initial release, copy current line
  • [x] 0.2.0 Copy current file
  • [x] 0.3.0 Copy current commit
  • [ ] 0.4.0 Add relative commands (links to branches, rather than commits)
  • [ ] 0.5.0 Add indication that link was copied (maybe one of those green notification boxes?)
  • [ ] 0.6.0 Add commands to insert links into current buffer instead of copying them
  • [ ] 0.7.0 Add ability to point to a specific git instead of just using git and expecting the shell to figure it out
  • [ ] 1.0.0 Clean up all the above into a nice package
  • [ ] 1.1.0 Add bitbucket support
  • [ ] 1.2.0 Add gitlab support

Contributing

Contributions are always welcome!

If you encounter a bug, please open an issue and write a bug report.

If you want to add a new feature or fix a bug, fork this repository and send a pull request.

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by