A Community-led Hyper-Hackable Text Editor
Go to file
Nathan Sobo 6c64d2a13b spec 💄
2012-05-31 10:46:00 -06:00
Atom Preprocessor can't distinguish between a macro that is defined with a value, and one that is simply defined. So I removed the LOAD_RESOURCES_FROM_DIR from the release build 2012-05-16 15:08:16 -07:00
Atom.xcodeproj make sure require.coffee is always compiled 2012-05-16 16:32:06 -07:00
benchmark Un-F benchmark 2012-05-29 16:05:24 -06:00
cef Forgot to add these files 2012-05-04 10:13:00 -07:00
docs Update flexbox test to demonstrate Chrome Canary 2012-05-07 12:34:32 -06:00
frameworks Upgraded to version 1.1025.607 of CEF1 2012-05-04 10:12:36 -07:00
script Fail if the benchmarks fail 2012-05-15 17:00:54 -07:00
spec spec 💄 2012-05-31 10:46:00 -06:00
src Cache hidden/visible state of cursor to avoid extra DOM hit when updating its appearance 2012-05-30 10:51:27 -06:00
static Kill inset box-shadow on editor frame because it slows down repaint 2012-05-30 10:51:02 -06:00
vendor Can use ffdescribe, ffit, fffdescribe, fffit to raise the focus priority. 2012-05-21 18:35:03 -07:00
.gitignore Add rake package 2012-03-29 11:36:52 -07:00
.pairs Cursor can move around screen 2012-01-17 18:13:50 -08:00
atom.icns The sad octocat was making me sad. Using a wooden lighting bolt icon now. 2012-04-02 08:56:33 -07:00
index.html Better error reporting 2012-04-05 14:07:52 -06:00
Rakefile Can use ffdescribe, ffit, fffdescribe, fffit to raise the focus priority. 2012-05-21 18:35:03 -07:00
README.md Add sparkle support to Atom 2012-04-02 12:21:25 -07:00

Atom — Futuristic Text Editing

Be forwarned: Atom is pre-alpha software!

Download

  1. Download from speakeasy

  2. Unzip and open the app

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.

Build from source

  1. Get xcode 4.2

  2. Install CoffeeScript http://coffeescript.org/ (try npm i -g coffee-script)

  3. git clone git@github.com:github/atom.git

  4. cd atom

  5. rake run