A Community-led Hyper-Hackable Text Editor
Go to file
2013-01-16 09:11:40 -08:00
.atom Fix point snippet prefix 2013-01-10 17:29:41 -07:00
benchmark Load grammars from TextMatePackage. Delete TextMateBundle. 2012-12-31 18:28:38 -06:00
cef Update CEF to Release 1271 r869 2012-10-30 14:26:21 -07:00
docs Talk about horizontal/vertical axes 2013-01-11 13:55:19 -07:00
git2 Update libgit2 to commit 11fccddcb5 2013-01-08 17:43:30 -08:00
native Store pathToOpen using new atom.set/getWindowState api 2013-01-10 18:04:22 -07:00
notes Move old wiki page to notes folder 2012-09-30 15:00:45 -07:00
script Upgrade to latest libgit2 development branch 2013-01-04 14:57:14 -08:00
spec Remove duplicate simulateDomAttachment function 2013-01-11 10:42:43 -08:00
src Add .tiff to image extensions 2013-01-16 09:11:40 -08:00
static Remove unused stylesheet 2013-01-15 08:53:44 -08:00
themes Add bundles and themes 2012-08-27 13:20:22 -07:00
tools/mac no more custom gyp 2012-10-18 16:00:14 -07:00
vendor Log longest specs explicitly 2013-01-10 08:37:32 -08:00
.github Add installing package doc file 2013-01-09 10:33:57 -08:00
.gitignore Remove/ignore tags file and add rake task to generate 2012-12-14 09:14:22 -08:00
.gitmodules Add property list bundle 2013-01-08 16:22:38 -08:00
.pairs Start on SelectList, a common base class for filterable lists 2012-10-04 10:26:06 -10:00
atom.gyp Add placeholder file icon 2012-12-28 15:39:19 -08:00
package.json Make npm and rake play nicely 2012-09-13 11:41:35 -07:00
Rakefile Be quiet 2013-01-04 08:18:52 -08:00
README.md Update Atom banner in README 2013-01-11 16:10:11 -08:00

Atom — Futuristic Text Editing

atom

Building from source

Be forwarned: Atom is pre-alpha software!

Requirements

Mountain Lion

The Setup™

Xcode (Get Xcode from the App Store (ugh, I know))

  1. gh-setup atom

  2. cd ~/github/atom && rake install

Atom is installed! Type atom [path] from the commmand line or find it in /Applications/Atom.app

Your ~/.atom Directory

A basic ~/.atom directory is installed when you run rake install. Take a look at ~/.atom/atom.coffee for more information.

Basic Keyboard shortcuts

Atom doesn't have much in the way of menus yet. Use these keyboard shortcuts to explore features.

cmd-o : open file/directory

cmd-n : new window

cmd-t : open fuzzy file finder

cmd-: : open command prompt

cmd-f : open command prompt with /

cmd-g : repeat the last search

cmd-r : reload the current window

cmd-alt-ctrl-s : run specs

cmd-alt-arrows : split screen in direction of arrow

cmd-alt-w : toggle word wrap

cmd-alt-f : fold selected lines

Most default OS X keybindings also work.

Init Script

Atom will require ~/.atom/atom.coffee whenever a window is opened or reloaded if it is present in your home directory. This is a rudimentary jumping off point for your own customizations.

Command Panel

A partial implementation of the Sam command language

Examples

, selects entire file

1,4 selects lines 1-4

/pattern selects the first match after the cursor/selection

s/pattern/replacement replace first text matching pattern in current selection

s/pattern/replacement/g replace all text matching pattern in current selection

,s/pattern/replacement/g replace all text matching pattern in file

1,4s/pattern/replacement replace all text matching pattern in lines 1-4

x/pattern selects all matches in the current selections

,x/pattern selects all matches in the file

,x/pattern1/ x/pattern2 "structural regex" - selects all matches of pattern2 inside matches of pattern1

Key Bindings

Atom has a CSS based key binding scheme. We will add a nicer loading mechanism, but for now you can bind keys by calling window.keymap.bindKeys with a CSS selector and a hash of key-pattern -> event mappings.

window.keymap.bindKeys '.editor'
  'ctrl-p': 'party-time'
  'ctrl-q': 'open-dialog-q'

When a keypress matches a pattern on an element that matches the selector, it will be translated to the named event, which will bubble up the DOM from the site of the keypress. Extension code can listen for the named event and react to it.