Atom Github



Atom GitHub Package The Atom GitHub package provides Git and GitHub integration for Atom. Check out github.atom.io for more information. At GitHub, we’re building the text editor we’ve always wanted: hackable to the core, but approachable on the first day without ever touching a config file. We can’t wait to see what you build with it. Atom is a PHP 5.3 component-based library that aims to extend PHP, not abstract it. It focuses on security, scalability, optimization and simplicity, while solving problems intrinsic to any application. The Atom code-base is highly organized and continuously optimized to ensure it can deliver powerful results with as small a footprint as. Bitcoin Atom (BCA) is a SegWit enabled Bitcoin fork with atomic swaps, hybrid consensus and lightning network. Atom is a free and open-source text and source code editor for macOS, Linux, and Microsoft Windows with support for plug-ins written in JavaScript, and embedded Git Control, developed by GitHub. Atom is a desktop application built using web technologies.

Version Control in Atom

Version control is an important aspect of any project and Atom comes with basic Git and GitHub integration built in.

In order to use version control in Atom, the project root needs to contain the Git repository.

Checkout HEAD revision

The Alt+Cmd+ZAlt+Ctrl+Z keybinding checks out the HEAD revision of the file in the editor.

This is a quick way to discard any saved and staged changes you've made and restore the file to the version in the HEAD commit. This is essentially the same as running git checkout HEAD -- <path> and git reset HEAD -- <path> from the command line for that path.

This command goes onto the undo stack so you can use Cmd+ZCtrl+Z afterwards to restore the previous contents.

Git status list

Atom ships with the fuzzy-finder package which provides Cmd+TCtrl+T to quickly open files in the project and Cmd+BCtrl+B to jump to any open editor. The package also provides Cmd+Shift+BCtrl+Shift+B which displays a list of all the untracked and modified files in the project. These will be the same files that you would see on the command line if you ran git status.

An icon will appear to the right of each file letting you know whether it is untracked or modified.

Commit editor

Atom can be used as your Git commit editor and ships with the language-git package which adds syntax highlighting to edited commit, merge, and rebase messages.

You can configure Atom to be your Git commit editor with the following command:

Github

The language-git package will help remind you to be brief by colorizing the first lines of commit messages when they're longer than 50 or 65 characters.

Status bar icons

The status-bar package that ships with Atom includes several Git decorations that display on the right side of the status bar:

The currently checked out branch name is shown with the number of commits the branch is ahead of or behind its upstream branch. An icon is added if the file is untracked, modified, or ignored. The number of lines added and removed since the file was last committed will be displayed as well.

Line diffs

The included git-diff package colorizes the gutter next to lines that have been added, edited, or removed.

This package also adds Alt+GDown and Alt+GUp keybindings that allow you to move the cursor to the next or previous diff in the current editor.

Open on GitHub

If the project you're working on is on GitHub, there are also some very useful integrations you can use. Most of the commands will take the current file you're viewing and open a view of that file on GitHub - for instance, the blame or commit history of that file.

  • Alt+GO - Open file on GitHub
  • Alt+GB - Open Blame view of file on GitHub
  • Alt+GH - Open History view of file on GitHub
  • Alt+GC - Copy the URL of the current file on GitHub to the clipboard
  • Alt+GR - Branch compare on GitHub

The branch comparison shows you the commits that are on the branch you're currently working on locally that are not on the mainline branch.

Installing Atom

To get started with Atom, we'll need to get it on your system. This section will go over installing Atom on your system as well as the basics of how to build it from source.

Installing Atom should be fairly simple. Generally, you can go to https://atom.io and you should see a download button as shown here:

The button or buttons should be specific to your platform and the download package should be easily installable. However, let's go over them here in a bit of detail.

Installing Atom on Mac

Atom follows the standard Mac zip installation process. You can either press the download button from the https://atom.io site or you can go to the Atom releases page to download the atom-mac.zip file explicitly. Once you have that file, you can click on it to extract the application and then drag the new Atom application into your 'Applications' folder.

When you first open Atom, it will try to install the atom and apm commands for use in the terminal. In some cases, Atom might not be able to install these commands because it needs an administrator password. To check if Atom was able to install the atom command, for example, open a terminal window and type which atom. If the atom command has been installed, you'll see something like this:

If the atom command wasn't installed, the which command won't return anything:

To install the atom and apm commands, run 'Window: Install Shell Commands' from the Command Palette, which will prompt you for an administrator password.

Installing Atom on Windows

Atom is available with Windows installers that can be downloaded from https://atom.io or from the Atom releases page. Use AtomSetup.exe for 32-bit systems and AtomSetup-x64.exe for 64-bit systems. This setup program will install Atom, add the atom and apm commands to your PATH, and create shortcuts on the desktop and in the start menu.

Git Atom Editor

The context menu Open with Atom in File Explorer, and the option to make Atom available for file association using Open with..., is controlled by the System Settings panel as seen above.

With Atom open, click on File > Settings, and then the System tab on the left. Check the boxes next to Show in file context menus, as well as Show in folder context menus. And you’re all set.

Installing Atom on Linux

You can install Atom on Linux using your distribution's package manager by configuring it to use one of our official package repositories. This will also enable you to update Atom when new releases are published.

Debian and Ubuntu (deb/apt)

To install Atom on Debian, Ubuntu, or related distributions, add our official
package repository to your system by running the following commands:

Atom Github Zip

You can now install Atom using apt-get (or apt on Ubuntu):

Alternatively, you can download the Atom .deb package and install it directly:

Red Hat and CentOS (YUM), or Fedora (DNF)

To install Atom on CentOS, Oracle Linux, Red Hat Enterprise Linux, Scientific Linux, Fedora, or related distributions that use the YUM or DNF package managers, add our official package repository to your system by running the following commands:

You can now install Atom using dnf (or yum depending on your distribution):

Alternatively, you can download the Atom .rpm package and install it directly:

SUSE (zypp)

To install Atom on openSUSE or other distributions that use the Zypp package manager, add our official package repository to your system by running the following commands:

You can now install Atom using zypper:

Alternatively, you can download the Atom .rpm package and install it directly:

Updating Atom

You should consider updating Atom periodically for the latest improvements to the software. Additionally, When Atom receives hotfixes for security vulnerabilities you will want to update your version of Atom as soon as possible.

'Automatically Update' is enabled by default in Core Settings of the Settings View, which will allow Atom to check for updates automatically. If you disable this setting you can update Atom manually.

To perform a manual update:

  • Click on the Atom > Check for Update menu item in the menu bar.
  • Search for Application: About in the Command Palette and click the Check now button.

Atom will begin to update if an update is available.

'Automatically Update' is enabled by default in Core Settings of the Settings View, which will allow Atom to check for updates automatically. If you disable this setting you can update Atom manually.

To perform a manual update:

  • Click on the Help > Check for Update menu item in the menu bar.
  • Search for Application: About in the Command Palette and click the Check now button.

Atom will begin to update if an update is available.

If you are using Atom's official package repositories, use your distribution's package manager to update Atom. Otherwise, you will need to manually download and install the latest .rpm or .deb package from https://atom.io. For more details, see Installing Atom on Linux.

Portable Mode

Atom stores configuration and state in a .atom directory usually located in your home directory (%userprofile% on Windows). You can however run Atom in portable mode where both the app and the configuration are stored together such as on a removable storage device.

To setup Atom in portable mode download the zip/tar.gz package for your system and extract it to your removable storage.

Then create a .atom directory alongside the directory that contains atom.exe, for example:

Then create a .atom directory alongside the Atom.app application, for example:

Then create a .atom directory alongside the directory that contains the Atom binary, for example:

Atom Github Integration

Portable Notes
  • The .atom directory must be writeable
  • You can move an existing .atom directory to your portable device
  • Atom can also store its Electron user data in your .atom directory - just create a subdirectory called electronUserData inside .atom
  • Alternatively you can set the ATOM_HOME environment variable to point wherever you want (you can write a .sh or .cmd script to temporarily set it and launch it from that)
  • Portable mode installations will not automatically update

Building Atom from Source

The Hacking on Atom Core section of the flight manual covers instructions on how to clone and build the source code if you prefer that option.

Proxy and Firewall Settings

Behind a Firewall?

If you are behind a firewall and seeing SSL errors when installing packages you can disable strict SSL by running:

Atom Editor Github

Using a Proxy?

Atom Github Integration

If you are using a HTTP(S) proxy you can configure apm to use it by running:

You can run apm config get https-proxy to verify it has been set correctly.