Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

atom/open-on-github

Atom and all repositories under Atom will be archived on December 15, 2022. Learn more in our official announcement

Open on GitHub package

CI

Provides commands to quickly view the current file on github.com (The Website).

Usage

When editing a file in Atom, use the command palette or keyboard shortcuts to:

  • Open the file on github.com alt-g, o
  • Open the blame view for the file on github.com alt-g, b
  • Open the history view for the file on github.com alt-g, h
  • Open the issues view for the repository the file belongs to on github.com alt-g, i
  • Open the pull requests view for the repository the file belongs to on github.com alt-g, p
  • Open the compare page for the current branch on github.com alt-g, r
  • Copy the github.com URL for the currently selected lines alt-g, c

Command Palette

Remote URL detection

The GitHub repository URL is guessed from the current branch and Git remote information. To override the defaults, you can use git config to set the remote and branch name:

git config atom.open-on-github.remote upstream
git config atom.open-on-github.branch some-branch

Inspired by the GitHub Tools package for Sublime Text 2.

About

Atom package for opening files on github.com

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors