Kevin Sawicki
3e84e9886c
Break out event handler setup into separate method
...
This mirrors the keymap setup method and allows specs
to reattach handlers after calling shutdown()
2013-02-05 13:17:53 -08:00
Kevin Sawicki
ba811c4119
Un-f a window spec
2013-02-05 12:59:26 -08:00
Justin Palmer
8512bee6c9
merge dev, fix conflicts
2013-02-05 12:42:44 -08:00
Kevin Sawicki
8de45ccc21
Bind meta-D to duplicate line below
...
Refs #134
2013-02-05 12:16:50 -08:00
Kevin Sawicki
ad3c18077c
Compare against EOF position when clipping
...
Previously the column could potentially be set to
zero since a Math.min comparison was used for the
length of an already adjusted row.
2013-02-05 12:08:17 -08:00
Justin Palmer & Nathan Sobo
65927ea0cf
fix window blur and focus events
2013-02-05 12:03:56 -08:00
Justin Palmer
22770bd663
add onBlur and onFocus events for the window
...
This allows us to simulate those events and test for them easier
2013-02-05 10:53:35 -08:00
Justin Palmer
eb8d6f9766
fix textmate editor specs
2013-02-04 17:07:27 -08:00
Justin Palmer
4350be62c6
💀 is-focused.
...
targeting blurred state instead so normal state styles don't need a
special prefix
2013-02-04 16:02:09 -08:00
Justin Palmer
7a2a02dacf
Merge pull request #227 from github/cut-dat-fat
...
Reusable styles for common UI elements
2013-02-04 15:39:22 -08:00
Kevin Sawicki
bef965d863
Add line number padding to expected width
2013-02-04 15:35:40 -08:00
Kevin Sawicki
bd88a0de15
Support CSON config file
...
Use ~/.atom/config.cson as the new default when no
config file exists.
~/.atom/config.json is still the default if they both
exist.
2013-02-04 12:38:00 -08:00
Kevin Sawicki
cd07ec841d
Add more window globals and shims in task shell
...
This allows jQuery to be successfully loaded from a web worker
since it does not have a document or window object by default.
Previously it would log about missing methods and properties.
Closes #228
2013-02-04 11:43:58 -08:00
Kevin Sawicki
84feaf369d
Format undefined array values as null
2013-02-04 09:08:00 -08:00
Kevin Sawicki
f65e83fe2a
Add spec for converting CSON back to object
2013-02-04 09:08:00 -08:00
Kevin Sawicki
ffc65b3735
Add more CSON specs
2013-02-04 09:08:00 -08:00
Jon Rohan
3cf07d29f3
Changing the if-focused event binding to blur.
2013-02-03 09:01:27 -08:00
Nathan Sobo
94f1630152
Bind window focus and focusout events separately to fix spec
2013-02-02 17:02:07 -07:00
Nathan Sobo
7867d0cb3b
Fix spec for 'focused' to 'is-focused' class rename.
2013-02-02 16:55:51 -07:00
Jon Rohan
fa940d0386
Merge pull request #168 from github/window-focused
...
Atom Window Focused
2013-02-01 17:50:28 -08:00
Jon Rohan
0d2a328dcc
making the editor .focused .is-focused for symmetry
2013-02-01 19:23:52 -05:00
Kevin Sawicki
69097bee50
Kill trailing newline and inline empty arrays
2013-02-01 16:20:25 -08:00
Kevin Sawicki
83b6a93684
Add initial CSON pretty printer
2013-02-01 16:15:54 -08:00
Jon Rohan
e54c3d8fbb
adding is-focused to body, and styling light ui
2013-02-01 18:40:53 -05:00
Jon Rohan
f62e49d2f4
Adding back the font-weight font-style to tmThemes
...
We can add this back now because in the default tests we're using a true
monospaced font, not the fake monospace font Inconsolata.
2013-02-01 11:09:12 -05:00
Corey Johnson
8e0b6aec40
Longer spec timeout
2013-01-31 15:46:54 -08:00
Corey Johnson
5d95d8bc4e
Remove log noise while running tests
2013-01-31 15:16:03 -08:00
Kevin Sawicki
379a4a4d8d
Only auto-load .cson and .json keymap files
...
This now prevents files such as .DS_Store from being loaded as a
keymap where previously all paths were loaded regardless of extension.
Closes #205
2013-01-31 12:03:21 -08:00
Corey Johnson & Kevin Sawicki
8f030cd97e
Always calculate dimensions with editor on DOM
...
Closes #206
2013-01-31 10:31:13 -08:00
Jon Rohan
11c0637220
Not adding a font family when the user doesn't have it set
2013-01-31 10:19:41 -05:00
Kevin Sawicki
1acf0b870f
Support translating points and ranges
2013-01-30 13:49:10 -08:00
Corey Johnson
c650deea01
Merge branch 'font-config' into dev
2013-01-30 13:24:12 -08:00
Corey Johnson
9b1cb29e1f
Don't store fontSize and fontFamily as instance variables
2013-01-30 12:20:02 -08:00
Corey Johnson
29ccd271de
Set font-size css property using style tag
2013-01-30 12:11:17 -08:00
Corey Johnson
9ea29b2899
Set font-family css property using style tag
2013-01-30 12:07:23 -08:00
Kevin Sawicki
f90d29262c
Use octicon as folding indicator
2013-01-30 11:50:29 -08:00
Kevin Sawicki
8dbcefa932
Style color of folded line numbers
2013-01-30 11:50:23 -08:00
Corey Johnson
e7c3282f53
Add font-family spec
2013-01-30 10:15:34 -08:00
Corey Johnson & Kevin Sawicki
4db876aed1
Deleting before fold no longer unfolds after undo
...
Use same row delta computation for updating start and
end rows in folds.
2013-01-30 09:10:26 -08:00
Corey Johnson
97fa9d522a
end/beginning word implementations are now more similar
2013-01-30 08:39:32 -08:00
Corey Johnson
46aefc75ab
Make EditSession specs match vim style word behavior
2013-01-29 16:57:23 -08:00
Corey Johnson
dac92ca6e7
Make cursor.moveCursorToBeginningOfWord behave like vim
2013-01-29 16:57:22 -08:00
Corey Johnson
b66efbe3e7
cursor.getBeginningOfCurrentWordBufferPosition behaves like vim
2013-01-29 16:57:22 -08:00
Kevin Sawicki
1303e58a87
Don't move trailing newline for multiline selections
2013-01-29 16:51:33 -08:00
Kevin Sawicki
1a04fa31d1
Clip range specified to Buffer.getTextInRange()
2013-01-29 15:35:14 -08:00
Kevin Sawicki
096566ab2a
Bind ctrl-meta-down to move line(s) down
...
Refs #134
2013-01-29 14:58:52 -08:00
Kevin Sawicki
ad7e4b63c0
Bind ctrl-meta-up to move line(s) up
...
Refs #134
2013-01-29 14:58:51 -08:00
Kevin Sawicki
e792265076
Trigger grammars-loaded event on syntax
2013-01-28 14:34:49 -08:00
Kevin Sawicki
ad8dd767e5
Don't allow web worker grammars to be registered
...
Grammars are already loaded at the beginning of the
specs synchronously and should not be overridden
when testing the background load task.
2013-01-28 14:23:18 -08:00
Corey Johnson & Nathan Sobo
493ed5f006
Merge branch 'web-workers' into dev
2013-01-28 15:02:57 -07:00