Commit Graph

2670 Commits

Author SHA1 Message Date
David Graham & Nathan Sobo
45a45bcbc8 Disable failing snippets spec for now 2012-07-05 17:17:42 -06:00
Nathan Sobo
d53be3b28d Add failing spec demonstrating inability to undo snippet expansion 2012-07-05 16:41:37 -06:00
Nathan Sobo
569359b687 Don't destroy selection/cursor anchors when encompassed by a change
Add the 'strong' option to anchors. If anchors are 'strong' instead of being destroyed by encompassing changes they move to the beginning of the change range.
2012-07-05 15:20:28 -06:00
Nathan Sobo
43edbcbe31 Add ctrl-space binding for autocomplete 2012-07-05 15:01:04 -06:00
Nathan Sobo
60a4f23c50 Anchors are destroyed when encompassed by a buffer change 2012-07-05 14:53:37 -06:00
Nathan Sobo
0043a5045b Refactor snippets extension
Pull out a SnippetExpansion class that is created when a snippet is successfully expanded. This is the only object that gets associated with the edit session.
2012-07-04 21:59:05 -06:00
Nathan Sobo
764265e97f Kill console.log 2012-07-04 21:27:13 -06:00
Nathan Sobo
2ddd5820f7 💄 Rename lastLine -> getLastLine 2012-07-04 12:59:54 -06:00
Nathan Sobo
f253820250 💄 Use more delegated (editor -> buffer) methods 2012-07-04 12:58:00 -06:00
Nathan Sobo
43f51b9689 💄 Replace editor.getBuffer().setText(…) w/ editor.setText(…) 2012-07-04 12:45:06 -06:00
Nathan Sobo
b254fa39d9 💄 Replace editor.getBuffer().getText() w/ editor.getText() 2012-07-04 12:41:51 -06:00
Nathan Sobo
6d7a6f9a92 💄 Replace editor.getBuffer().getPath() w/ editor.getPath() 2012-07-04 12:40:17 -06:00
Nathan Sobo
39ce15c3fa Merge branch 'master' of github.com:github/atom 2012-07-04 12:34:56 -06:00
Nathan Sobo
c90c2e80d6 Replace @buffer reference on Editor with @getBuffer method 2012-07-04 12:34:44 -06:00
Nathan Sobo
fb6aa46531 Editor subscribes to buffer-path-change events on edit sessions, not buffers directly 2012-07-04 12:05:09 -06:00
Nathan Sobo
3c259224b6 Update flex box tests.
Test 2 now works against chromium, but test 1 still fails because height: fill-available isn't implemented yet.
2012-07-04 11:43:31 -06:00
Corey Johnson
2423a7413d Storing cached coffeeScript in /tmp because it overwhelms localstorage 2012-07-03 15:58:12 -07:00
Corey Johnson
3aaa8ad8f0 TreeView's add and move create intermediate directories as needed 2012-07-03 15:34:34 -07:00
Corey Johnson
4cf4456635 Add fs.makeTree 2012-07-03 14:46:45 -07:00
Corey Johnson
fc660c2790 Add fs.split 2012-07-03 14:44:41 -07:00
Corey Johnson
33813d0c42 💄 2012-07-03 14:44:05 -07:00
Corey Johnson
08b0a686ed fs.directory returns empty string if path has no parent directory 2012-07-03 14:43:56 -07:00
Corey Johnson
e36b5521bd When testing keybindings, use window.requireExtension instead of rootView.activateExtension 2012-07-03 13:44:06 -07:00
Corey Johnson
ab548bc946 Rename extension to requireExtension 2012-07-03 13:43:30 -07:00
Corey Johnson
2cb3a0ba69 Move extension keymap files into extension directory 2012-07-03 12:59:51 -07:00
Corey Johnson
263065171d Use window.extension to load extensions from .atom file 2012-07-03 12:51:30 -07:00
Corey Johnson & Nathan Sobo
b96bd29ef5 Move extensions with more than one file into folders 2012-07-03 11:22:08 -07:00
Corey Johnson & Nathan Sobo
ec510c5372 Remove commented out lines 2012-07-03 10:23:24 -07:00
Nathan Sobo
bdfdf08ea0 Adjust Editor.scrollTop when removing a line reduces the scroll height
This eliminates rendering artifacts and jerky scrolling at the bottom of the screen
2012-07-03 11:12:54 -06:00
Nathan Sobo
3ee7c0dc0f "Scroll" gutter by relatively positioning its line numbers
This matches how we scroll lines, and eliminates opportunities for the gutter to get out of sync with the lines. If that happened, it would probably be a bug, but this at least eliminates one source of confusion when debugging.
2012-07-03 11:09:34 -06:00
Nathan Sobo
e21d0a5d2a Rename RootView.modifiedBuffers -> getModifiedBuffers 2012-07-02 19:49:05 -06:00
Nathan Sobo
9cae4d3d8f Rename RootView.editors -> getEditors 2012-07-02 19:47:38 -06:00
Nathan Sobo
bd5c1f8694 Rename RootView.activeEditor -> getActiveEditor 2012-07-02 19:46:33 -06:00
Nathan Sobo
a38042f89f Rename Editor.removeActiveEditSession -> destroyActiveEditSession 2012-07-02 19:44:24 -06:00
Nathan Sobo
0433d3c3d9 Never send blur events to specs window
This makes sure that specs that rely on focus behavior don't end up failing because our focus is on an entirely different window.
2012-07-02 19:41:12 -06:00
Nathan Sobo
8fbbd77a23 Commands terminating in a substitution restore their initial selection 2012-07-02 19:35:14 -06:00
Nathan Sobo
81530761ba Merge branch 'master' of github.com:github/atom 2012-07-02 19:22:24 -06:00
Nathan Sobo
f92faffb5b Use html5 storage to cache coffee script compilation by file md5 2012-07-02 19:21:46 -06:00
Nathan Sobo
06cdcaa820 Use fs.md5ForPath in spec-helpert o ensure sample.js isn't modified 2012-07-02 19:21:24 -06:00
Corey Johnson & Nathan Sobo
b59bd4bc7b Saving a buffer does not trigger a "contents-change" event 2012-07-02 17:48:30 -07:00
Corey Johnson & Nathan Sobo
ef7121dfb3 File does not trigger 'contents-change' when its md5 does not change 2012-07-02 17:47:54 -07:00
Corey Johnson & Nathan Sobo
6ebe75c0bd Add fs.md5ForPath 2012-07-02 18:19:16 -06:00
Corey Johnson & Nathan Sobo
25d2d3be12 Merge branch 'master' of github.com:github/atom 2012-07-02 18:14:52 -06:00
Corey Johnson & Nathan Sobo
4a3bf1ddea Patch CEF to use a previous version of keydown code.
Patched chromium archive file (https://chromiumcodereview.appspot.com/9638015/patch/2001/2002)

Reverted keydown method from CEF commit "- Mac: Add IME support (issue #557)."
2012-07-02 17:10:48 -07:00
Nathan Sobo
8c740b09e6 Add fs.lastModified 2012-07-02 17:44:12 -06:00
Corey Johnson
b673d40fd5 Remove focus from CEF when AtomController resigns as main window. Add focus when it becomes the main window. 2012-07-02 13:14:46 -06:00
Nathan Sobo
7387ad13f6 Merge branch 'master' of https://github.com/github/atom 2012-07-02 13:13:51 -06:00
Nathan Sobo
6b3180e144 Ensure path is present before building a Buffer with it in spec 2012-07-02 13:13:25 -06:00
Nathan Sobo
8468e89db8 Upgrade to cef_binary_1.1025.723_macosx 2012-07-02 13:11:16 -06:00
Corey Johnson
10bfc56624 When a Buffer is created, the initial call to setText is not treated as an undoable change. 2012-07-02 11:39:22 -07:00